Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make pull's rebase parameter a true yes_no_switch #1832

Merged
merged 3 commits into from
Dec 8, 2023
Merged

Conversation

kaste
Copy link
Collaborator

@kaste kaste commented Dec 8, 2023

In case of pull it should be possible to trigger a --no-rebase by
passing in rebase=False. Also reading the default from git config
seems superfluous as omitting the argument will let git find out the
default for us.

Fix that by making rebase a three-state toggle, hence differentiating
between a False and None value.

While at it modernize the file.

kaste added 3 commits December 8, 2023 23:56
In case of `pull` it should be possible to trigger a `--no-rebase` by
passing in `rebase=False`.  Also reading the default from `git config`
seems superfluous as omitting the argument will let git find out the
default for us.

Fix that by making `rebase` a three-state toggle, hence differentiating
between a `False` and `None` value.
Rewrite the command to use our `GsWindowCommand` base.  While at it,
remember the last branch the user has chosen and preselect it the next
time.
@kaste kaste enabled auto-merge December 8, 2023 22:59
@kaste kaste merged commit 890e452 into master Dec 8, 2023
8 checks passed
@kaste kaste deleted the fix-pull-rebase branch December 8, 2023 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant