Skip to content

Conversation

mstv
Copy link
Member

@mstv mstv commented Sep 6, 2024

Fixes #11863

Proposed changes

  • Add navigation commands GoToFirstParent / GoToLastParent to the RevisionGridControl and to the FileStatusList of the RevisionGridControl
    (hotkeys Ctrl+Left / Ctrl+Right are free yet and can be assigned manually)
  • Add icon to GoToCommonAncestor

I use this for following the main branch or for entering the feature branch, respectively.
Note: Left and right do not always match the graph - but strictly the merge direction.

GoToFirstParent is almost the same as GoToParent. But when moving down and up in branches, GoToParent chooses the parent commit from the navigation history.

Screenshots

Before

grafik

grafik

After

image

image

Test methodology

  • manual

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.

@mstv mstv self-assigned this Sep 6, 2024
Copy link
Member

@gerhardol gerhardol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation is good.
What I have against this is the default use of two useful shortcuts for something I see very little use for myself. Convince me that this is useful.

@mstv
Copy link
Member Author

mstv commented Sep 9, 2024

What I have against this is the default use of two useful shortcuts for something I see very little use for myself. Convince me that this is useful.

I use this for following the main branch or for entering the feature branch, respectively.

As an integrator, I often need to scan the history of parallel branches, and as reviewer, I need to find examples of nasty diffs. ;-)
We can also omit default hotkeys or choose other ones. I can assign my preferred ones manually.

@mstv mstv merged commit 5816617 into gitextensions:master Sep 11, 2024
3 of 4 checks passed
@mstv mstv deleted the feat/11863_gotolastparent branch September 11, 2024 22:57
@RussKie RussKie added this to the 5.1 milestone Nov 6, 2024
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.

Add navigation command "Go to last parent commit"
3 participants