# Hunk splitting in "git gui"

3 messages from 2007-12-28 to 2007-12-28. Participants: Wincent Colaiuta, Johannes Sixt.
Thread: https://gitlist.dev/t/11412

## Wincent Colaiuta, 2007-12-28 12:26

Subject: Hunk splitting in "git gui"
Message-ID: <3F129AD6-EA27-4584-B5C8-2866964AB93E@wincent.com>
URL: https://gitlist.dev/e/3F129AD6-EA27-4584-B5C8-2866964AB93E%40wincent.com

```
I'd use "git gui" a lot more if I could split hunks in it (like you  
can in "git add --interactive").

Problem is, I have zero knowledge of Tcl/Tk. Can someone who has  
knowledge of this offer an opinion on whether this would be a feasible  
project for a beginner? I'm willing to have a shot at it, but before I  
embark on this I'd like to know if others consider it useful and doable!

Cheers,
Wincent

```

## Johannes Sixt, 2007-12-28 12:38

Subject: Re: Hunk splitting in "git gui"
Message-ID: <4774EE35.10905@viscovery.net>
URL: https://gitlist.dev/e/4774EE35.10905%40viscovery.net
In-Reply-To: <3F129AD6-EA27-4584-B5C8-2866964AB93E@wincent.com>

```
Wincent Colaiuta schrieb:
> I'd use "git gui" a lot more if I could split hunks in it (like you can
> in "git add --interactive").
> 
> Problem is, I have zero knowledge of Tcl/Tk. Can someone who has
> knowledge of this offer an opinion on whether this would be a feasible
> project for a beginner? I'm willing to have a shot at it, but before I
> embark on this I'd like to know if others consider it useful and doable!

Look at the sub-thread that started here:

http://article.gmane.org/gmane.comp.version-control.git/68091

Be sure not to skip the explanation why --unidiff-zero is dangerous.

-- Hannes

```

## Wincent Colaiuta, 2007-12-28 15:37

Subject: Re: Hunk splitting in "git gui"
Message-ID: <1CD46F56-71FE-408B-AC9D-E416754862AE@wincent.com>
URL: https://gitlist.dev/e/1CD46F56-71FE-408B-AC9D-E416754862AE%40wincent.com
In-Reply-To: <4774EE35.10905@viscovery.net>

```
El 28/12/2007, a las 13:38, Johannes Sixt escribió:

> Wincent Colaiuta schrieb:
>> I'd use "git gui" a lot more if I could split hunks in it (like you  
>> can
>> in "git add --interactive").
>>
>> Problem is, I have zero knowledge of Tcl/Tk. Can someone who has
>> knowledge of this offer an opinion on whether this would be a  
>> feasible
>> project for a beginner? I'm willing to have a shot at it, but  
>> before I
>> embark on this I'd like to know if others consider it useful and  
>> doable!
>
> Look at the sub-thread that started here:
>
> http://article.gmane.org/gmane.comp.version-control.git/68091
>
> Be sure not to skip the explanation why --unidiff-zero is dangerous.

Ah, yes now I remember seeing that thread. I didn't actually like what  
was proposed in that patch (hunk-splitting on arbitrary, user- 
selectable lines) and much prefer what "git add --interactive" does  
(explode a hunk deterministically into multiple hunks wherever there  
are intervening context lines).

Cheers,
Wincent

```
