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

Re: selective git-update-index per diff(1) chunks

From
Sam Vilain <sam@vilain.net>
Date
Dec 2, 2006, 21:08 UTC
Message-ID
<4571EB5F.7030300@vilain.net>
In-Reply-To
<slrnen04os.a5.Peter.B.Baumann@xp.machine.xx>
Peter Baumann wrote:
Show 6 quoted lines
>> Now I want to commit them as two separate commits. So far, it's
>> * getting full diff
>> * cp(1)
>> * hand-edit both diffs
>> * commit first
>> * commit second
I made a patch to 'cg-commit -p' to do this, check the archives.
Show 7 quoted lines
>> Relying on diff(1) definition of chunks is sorta hacky, though... I admit it.
> 
> I don't think it belongs in the plumbing, the git-update-index but I
> think something like this would be very usefull.
> 
> AFAIR darcs has this functionality. It selectively ask for each hunk if
> it should be commited. This would be awfull to have in git.
darcs and SVK both have this "interactive commit".

darcs also does something very useful with this; what amounts to automatically making topic branches. Currently there is no easy way to manage that, either.

Sam.
Previous: Johannes SchindelinNext: Linus Torvalds
Message 6 of 12 in “selective git-update-index per diff(1) chunks”
  1. Alexey DobriyanDec 1, 2006
  2. Peter BaumannDec 1, 2006
  3. Junio C HamanoDec 1, 2006
  4. Anand KumriaDec 1, 2006
  5. Johannes SchindelinDec 1, 2006
  6. Sam VilainDec 2, 2006
  7. Linus TorvaldsDec 1, 2006
  8. Sven VerdoolaegeDec 4, 2006
  9. Jakub NarebskiDec 4, 2006
  10. Jakub NarebskiDec 4, 2006
  11. Sven VerdoolaegeDec 4, 2006
  12. Jakub NarebskiDec 4, 2006

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.