# My git-gui difftool script

6 messages from 2011-02-17 to 2011-02-18. Participants: Chunlin Zhang, Michael J Gruber.
Thread: https://gitlist.dev/t/26533

## Chunlin Zhang, 2011-02-17 13:22

Subject: My git-gui difftool script
Message-ID: <loom.20110217T141642-685@post.gmane.org>
URL: https://gitlist.dev/e/loom.20110217T141642-685%40post.gmane.org

```
My git-gui difftool scipt can use now.Can use with meld/beyond compare and so on
visual diff tool.
Upload to https://github.com/zhangchunlin/gitguidifftool ,and the usage is in
README.

```

## Michael J Gruber, 2011-02-17 16:28

Subject: Re: My git-gui difftool script
Message-ID: <4D5D4CA0.8040301@fastmail.fm>
URL: https://gitlist.dev/e/4D5D4CA0.8040301%40fastmail.fm
In-Reply-To: <loom.20110217T141642-685@post.gmane.org>

```
Chunlin Zhang venit, vidit, dixit 17.02.2011 14:22:
> My git-gui difftool scipt can use now.Can use with meld/beyond compare and so on
> visual diff tool.
> Upload to https://github.com/zhangchunlin/gitguidifftool ,and the usage is in
> README.
> 

I don't want to spoil the party, but how is this different from using
"git difftool -y $FILENAME" for the command?

Michael

```

## Chunlin Zhang, 2011-02-18 01:12

Subject: Re: My git-gui difftool script
Message-ID: <loom.20110218T020325-431@post.gmane.org>
URL: https://gitlist.dev/e/loom.20110218T020325-431%40post.gmane.org
In-Reply-To: <4D5D4CA0.8040301@fastmail.fm>

```
Michael J Gruber <michaeljgruber+gmane <at> fastmail.fm> writes:

> 
> 
> I don't want to spoil the party, but how is this different from using
> "git difftool -y $FILENAME" for the command?

Because in git-gui I can know which files are modified and which file are staged
more clearly and directly,and I can examine the diff over and over again if I
 like.

> 
> Michael
> 

```

## Michael J Gruber, 2011-02-18 07:36

Subject: Re: My git-gui difftool script
Message-ID: <4D5E2193.1050103@fastmail.fm>
URL: https://gitlist.dev/e/4D5E2193.1050103%40fastmail.fm
In-Reply-To: <loom.20110218T020325-431@post.gmane.org>

```
Chunlin Zhang venit, vidit, dixit 18.02.2011 02:12:
> Michael J Gruber <michaeljgruber+gmane <at> fastmail.fm> writes:
> 
>>
>>
>> I don't want to spoil the party, but how is this different from using
>> "git difftool -y $FILENAME" for the command?
> 
> Because in git-gui I can know which files are modified and which file are staged
> more clearly and directly,and I can examine the diff over and over again if I
>  like.

Well, of course, but in git-gui's Tools menu you can use

"git difftool -y $FILENAME"

instead of

"YOUR_PATH_TO_git_gui_difftool.py $FILENAME"

for the command. So I'm just wondering what your new difftool.py does
differently from the existing git-difftool.

Michael

```

## Chunlin Zhang, 2011-02-18 08:26

Subject: Re: My git-gui difftool script
Message-ID: <loom.20110218T091946-265@post.gmane.org>
URL: https://gitlist.dev/e/loom.20110218T091946-265%40post.gmane.org
In-Reply-To: <4D5E2193.1050103@fastmail.fm>

```
Michael J Gruber <michaeljgruber+gmane <at> fastmail.fm> writes:

> "git difftool -y $FILENAME"
> 
> instead of
> 
> "YOUR_PATH_TO_git_gui_difftool.py $FILENAME"
> 
> for the command. So I'm just wondering what your new difftool.py does
> differently from the existing git-difftool.
> 
> Michael
> 
...
I just found that I am reinventing the wheel and it is a worse wheel.

I suggest this should be integrated into git-gui.

```

## Michael J Gruber, 2011-02-18 09:24

Subject: Re: My git-gui difftool script
Message-ID: <4D5E3AE9.7000505@drmicha.warpmail.net>
URL: https://gitlist.dev/e/4D5E3AE9.7000505%40drmicha.warpmail.net
In-Reply-To: <loom.20110218T091946-265@post.gmane.org>

```
Chunlin Zhang venit, vidit, dixit 18.02.2011 09:26:
> Michael J Gruber <michaeljgruber+gmane <at> fastmail.fm> writes:
> 
>> "git difftool -y $FILENAME"
>>
>> instead of
>>
>> "YOUR_PATH_TO_git_gui_difftool.py $FILENAME"
>>
>> for the command. So I'm just wondering what your new difftool.py does
>> differently from the existing git-difftool.
>>
>> Michael
>>
> ...
> I just found that I am reinventing the wheel and it is a worse wheel.

You have taught me about git-gui's Tools menu which I didn't know
before. So we both learned something :)

> I suggest this should be integrated into git-gui.

Sounds fine with me, although the flexibility of difftool may prevent
having a sane default for "use terminal".

Michael

```
