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

Re: 2 questions/nits about commit and config

From
Junio C Hamano <junkio@cox.net>
Date
Feb 4, 2006, 22:24 UTC
Message-ID
<7vhd7evk38.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7voe1mvkls.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
Show 6 quoted lines
> An example of such semantic change would be: if I am in
> subdirecotry foo/, commit changes to files in that subdirectory
> and subdirectory alone.  But that is actively _encouraging_
> partial commits (commits that records a state that never existed
> in your working tree as a whole) so I personally am not so
> enthused to buy such a _feature_.

Before people start complaining about it, I take this part back. "git commit -a" inside a subdirectory "foo" is not much different from "git commit foo/a foo/b foo/c" from the toplevel directory to explicitly say "Don't worry about what I told the index so far; I want to check in changes only to these paths", and making a partial commit out of the current HEAD and the specified working tree files using a temporary index (while updating the main index at the same time), so I am inclined to say we should support it that way, since during the previous discussion we have pretty much settled how we would want "git commit paths..." and "git commit --include paths..." commands to behave.

Previous: Junio C HamanoNext: Alan Chandler
Message 3 of 8 in “2 questions/nits about commit and config”
  1. Michael FischerFeb 4, 2006
  2. Junio C HamanoFeb 4, 2006
  3. Junio C HamanoFeb 4, 2006
  4. Alan ChandlerFeb 4, 2006
  5. Keith PackardFeb 4, 2006
  6. Junio C HamanoFeb 5, 2006
  7. Junio C HamanoFeb 5, 2006
  8. Daniel BarkalowFeb 5, 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.