threads / discuss / 11412

Hunk splitting in "git gui"

Subject: Hunk splitting in "git gui"

## tl;dr

3 messages between Dec 28, 2007 and Dec 28, 2007.

replies: 2people: 2as markdown or json

Wincent Colaiuta· Dec 28, 2007, 12:26 UTC · lore

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· Dec 28, 2007, 12:38 UTC · re: Wincent Colaiuta · lore

Re: Hunk splitting in "git gui"

Wincent Colaiuta schrieb:
Show 7 quoted lines
> 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· Dec 28, 2007, 15:37 UTC · re: Johannes Sixt · lore

Re: Hunk splitting in "git gui"

El 28/12/2007, a las 13:38, Johannes Sixt escribió:
Show 18 quoted lines
> 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

← back to recent threads