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

Re: seperate commits for objects already updated in index?

From
Junio C Hamano <junkio@cox.net>
Date
Mar 14, 2006, 23:51 UTC
Message-ID
<7vwtewk2jp.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0603140915290.3618@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 8 quoted lines
> I also think that test is historical, from before Junio cleaned up how 
> "git commit" worked - it _used_ to be that "git commit" would work in the 
> current index, but these days it generates a new index to commit when you 
> do "-o", so there's really no _technical_ reason to refuse the partial 
> commit any more as far as I can see.
>
> So I don't know. I don't think you were being dumb, I think git could have 
> been friendlier to you.

I have to go back to the list archive, but if I recall correctly the refusal was added to be friendlier -- by being safer -- and was not there in the earlier round of -o/-i proposal.

Previous: Paul JakmaNext: Junio C Hamano
Message 6 of 11 in “seperate commits for objects already updated in index?”
  1. Paul JakmaMar 14, 2006
  2. Linus TorvaldsMar 14, 2006
  3. Paul JakmaMar 14, 2006
  4. Linus TorvaldsMar 14, 2006
  5. Paul JakmaMar 14, 2006
  6. Junio C HamanoMar 14, 2006
  7. Junio C HamanoMar 15, 2006
  8. Paul JakmaMar 15, 2006
  9. Andreas EricssonMar 15, 2006
  10. Junio C HamanoMar 15, 2006
  11. Andreas EricssonMar 15, 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.