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
Rebase --onto
: Display only the current branch to make selection easier
#9686
Rebase --onto
: Display only the current branch to make selection easier
#9686
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
(I had to view the code to realize this functionality, this could have been described with a screenshot...)
I don't understand, there are 2 screenshots... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please describe the flow to understand the context of this change better?
GitUI/CommandsDialogs/FormRebase.cs
Outdated
var previousValueBranchFilterEnabled = AppSettings.BranchFilterEnabled; | ||
var previousValueShowCurrentBranchOnly = AppSettings.ShowCurrentBranchOnly; | ||
var previousValueShowReflogReferences = AppSettings.ShowReflogReferences; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use explicit types for intrinsic data types
var previousValueBranchFilterEnabled = AppSettings.BranchFilterEnabled; | |
var previousValueShowCurrentBranchOnly = AppSettings.ShowCurrentBranchOnly; | |
var previousValueShowReflogReferences = AppSettings.ShowReflogReferences; | |
bool previousValueBranchFilterEnabled = AppSettings.BranchFilterEnabled; | |
bool previousValueShowCurrentBranchOnly = AppSettings.ShowCurrentBranchOnly; | |
bool previousValueShowReflogReferences = AppSettings.ShowReflogReferences; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest this is changed, then I will approve and I am supposedly controlling the merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
That was what I struggled with as well - I never use the feature this way. I normally always rebase interactively, removing the commits I do not want. |
Rebase --onto
: Display only the current branch to make selection easier
3fa48a2
to
a016bc4
Compare
@msftbot merge if @gerhardol approves |
Hello @RussKie! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
a016bc4
to
2e0b3b7
Compare
Proposed changes
Because a commit should be selected in the history of the current branch, display only this current branch to make the selection easier.
Screenshots
Before
After
Test methodology
Test environment(s)
Merge strategy
I agree that the maintainer squash merge this PR (if the commit message is clear).
✒️ I contribute this code under The Developer Certificate of Origin.