Re: Hunk splitting in "git gui"
- From
Wincent Colaiuta <win@wincent.com>
- Date
- Dec 28, 2007, 15:37 UTC
- Message-ID
- <1CD46F56-71FE-408B-AC9D-E416754862AE@wincent.com>
- In-Reply-To
- <4774EE35.10905@viscovery.net>
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