git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Johannes Sixt
Message 3 of 3 in “Hunk splitting in "git gui"”
  1. Wincent ColaiutaDec 28, 2007
  2. Johannes SixtDec 28, 2007
  3. Wincent ColaiutaDec 28, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.