# [PATCH (GITK)] gitk: Add a menu option to start Git Gui.

3 messages from 2008-11-13 to 2008-11-18. Participants: Alexander Gavrilov, Paul Mackerras.
Thread: https://gitlist.dev/t/16316

## Alexander Gavrilov, 2008-11-13 20:12

Subject: [PATCH (GITK)] gitk: Add a menu option to start Git Gui.
Message-ID: <200811132312.42150.angavrilov@gmail.com>
URL: https://gitlist.dev/e/200811132312.42150.angavrilov%40gmail.com

```
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.

Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
---
 gitk |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gitk b/gitk
index 46896a2..e4562d7 100755
--- a/gitk
+++ b/gitk
@@ -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 {
-- 
1.6.0.3.15.gb8d36

```

## Paul Mackerras, 2008-11-18 09:33

Subject: Re: [PATCH (GITK)] gitk: Add a menu option to start Git Gui.
Message-ID: <18722.35810.362792.501694@cargo.ozlabs.ibm.com>
URL: https://gitlist.dev/e/18722.35810.362792.501694%40cargo.ozlabs.ibm.com
In-Reply-To: <200811132312.42150.angavrilov@gmail.com>

```
Alexander Gavrilov writes:

> 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.

```

## Alexander Gavrilov, 2008-11-18 14:12

Subject: Re: [PATCH (GITK)] gitk: Add a menu option to start Git Gui.
Message-ID: <bb6f213e0811180612k2183afcas2ba1dc379bfbb03b@mail.gmail.com>
URL: https://gitlist.dev/e/bb6f213e0811180612k2183afcas2ba1dc379bfbb03b%40mail.gmail.com
In-Reply-To: <18722.35810.362792.501694@cargo.ozlabs.ibm.com>

```
On Tue, Nov 18, 2008 at 12:33 PM, Paul Mackerras <paulus@samba.org> wrote:
> Alexander Gavrilov writes:
>> 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

```
