Skip to contentSkip to conversation

gitk: Add a menu option to start Git Gui.

PATCH In review Alexander Gavrilov 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gitk: Add a menu option to start Git Gui.

Git Gui already has menu commands to start gitk, and this makes the relation symmetric. Since gitk and git-gui complement each other, I think that it is beneficial to integrate them where it makes sense.

---
 gitk |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
gitk +3 -0
index 46896a2..e4562d7 100755
@@ -1906,6 +1906,9 @@ proc makewindow {} {
 	    {mc "Reload" command reloadcommits -accelerator Meta1-F5}
 	    {mc "Reread references" command rereadrefs}
 	    {mc "List references" command showrefs -accelerator F2}
+	    {xx "" separator}
+	    {mc "Start Git Gui" command {exec git gui &}}
+	    {xx "" separator}
 	    {mc "Quit" command doquit -accelerator Meta1-Q}
 	}}
 	{mc "Edit" cascade {
Signature · 1 line
1.6.0.3.15.gb8d36
#1 lore raw
Quoted 4 lines · Alexander Gavrilov

Git Gui already has menu commands to start gitk, and this makes the relation symmetric. Since gitk and git-gui complement each other, I think that it is beneficial to integrate them where it makes sense.

I think it makes more sense to have this as an item on the context menu for the fake commit(s) for local changes.

Paul.

#2 lore raw
Quoted 8 lines · Paul Mackerras
Quoted 4 lines · Alexander Gavrilov

Git Gui already has menu commands to start gitk, and this makes the relation symmetric. Since gitk and git-gui complement each other, I think that it is beneficial to integrate them where it makes sense.

I think it makes more sense to have this as an item on the context menu for the fake commit(s) for local changes.

Git Gui is useful for a lot more things than just committing changes, e.g. you can interact with remote repositories, or do a merge, or amend the last commit message. Also, not everyone has local change display enabled in gitk.

Alexander