vscode-git-graph icon indicating copy to clipboard operation
vscode-git-graph copied to clipboard

Display git merge-base and git log between 2 selected commits in the graph

Open weintraubt opened this issue 10 months ago • 4 comments

Display merge-base between 2 commits

In our company we use a lot of branches and that would be fantastic to have an option to display the git merge-base result between 2 commits selected in the graph.

Display git log between 2 commits

Similarly, that would great to have an option to execute git log between 2 commits selected in the graph.

weintraubt avatar Feb 11 '25 08:02 weintraubt

Display merge-base between 2 commits

In our company we use a lot of branches and that would be fantastic to have an option to display the git merge-base result between 2 commits selected in the graph.

I agree some time this could be useful

Display git log between 2 commits

Similarly, that would great to have an option to execute git log between 2 commits selected in the graph.

Why not Control-click on two commits?

hansu avatar Feb 12 '25 09:02 hansu

Display merge-base between 2 commits In our company we use a lot of branches and that would be fantastic to have an option to display the git merge-base result between 2 commits selected in the graph.

I agree some time this could be useful

Display git log between 2 commits Similarly, that would great to have an option to execute git log between 2 commits selected in the graph.

Why not Control-click on two commits?

Yes, we use this to understand the changes between 2 commits but here I was thinking about getting the list of commit descriptions. To illustrate, this is the command we execute today to get that list git log --pretty=oneline commitA commitB. Like there is an option to "Copy Commit Subject to Clipboard", I was thinking would it be a good idea to have a similar concept to copy to clipboard the list of Subjects when 2 commits are selected. It helps understanding where the changes are coming from.

weintraubt avatar Feb 13 '25 03:02 weintraubt

I was thinking would it be a good idea to have a similar concept to copy to clipboard the list of Subjects when 2 commits are selected.

So only for copying the commit messages in between? I think this is a quite rare use case. Lets see what other users say.

hansu avatar Feb 14 '25 10:02 hansu

I was thinking would it be a good idea to have a similar concept to copy to clipboard the list of Subjects when 2 commits are selected.

So only for copying the commit messages in between? I think this is a quite rare use case. Lets see what other users say.

That's right and I agree I miss it less than git merge-base mentioned above.

weintraubt avatar Feb 15 '25 15:02 weintraubt