-
Notifications
You must be signed in to change notification settings - Fork 20
Feature Go To Commit #53
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
base: master
Are you sure you want to change the base?
Conversation
Thanks for this PR. Generally a good idea, but it gives fuzzy results when viewing a diff of more than one commit. a) It jumps to the commit of the change where the cursor is located What do you think about that? |
The context menu feature does not work unfortunately: gg2_Peek.2025-04-24.23-41.mp4 |
Oh, I have implemented the transition only between two files, go to the commit from the left file or go to the commit from the right file, if you narrow the two diff files to one file, then the URI of this file will be one and will contain only one commit, so I don't know how to fix it. But as I see, you want another one, to implement the transition taking into account the commit line, that is, Line History, it is possible, it is available in GitLens, but not with my capabilities, it requires too many changes in the code and logic of Git Graph. |
Hmm then I don't really know how your feature should be used. Can you provide an explanation (short video maybe)? |
Yes, it's simple, the feature performs the basic function of finding the commit of the file being compared. Here is an example video of how it is done without the feature and with the feature, instead of search manually, I created a button. If you want, I can add a more specific description like "Go to Commit this File" Screen.Recording.2025-04-25.at.10.35.47.mp4What you suggest is already a separate feature, "Go to Commit this Line", and it needs a separate implementation function |
Ah ok now I understand the feature. It has a slightly rare use case. I could imagine using it in those two scenarios together with Git Lens: gg5_Peek.2025-04-25.11-43.mp4BUT when you are already using Git Lens, then you can also use the integrated functionality of Git Lens: gg6_Peek.2025-04-25.11-48.mp4 |
This feature adds a special button on the top right that allows you to navigate to a specific commit in the Git Graph from Git Diff Compare
