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

Re: committing only selected diff's of a file

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 3, 2007, 11:09 UTC
Message-ID
<m3tzn0uj9s.fsf@roke.D-201>
In-Reply-To
<4753D465.10802@ecocode.net>
Erik Colson <eco@ecocode.net> writes:
> Does Git allow to commit only selected patches from inside 1 file ?
> I'm coming from a darcs world where this is supported...
> Probably it is supported in Git too, but I can't figure out how :-/
Use "git add --interactive" or "git gui" (the latter requires Tcl/Tk).
-- 
Jakub Narebski
Previous: Miklos VajnaNext: Matthieu Moy
Message 3 of 4 in “committing only selected diff's of a file”
  1. Erik ColsonDec 3, 2007
  2. Miklos VajnaDec 3, 2007
  3. Jakub NarebskiDec 3, 2007
  4. Matthieu MoyDec 3, 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.