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

Re: [RFC] Two conceptually distinct commit commands

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 4, 2006, 21:19 UTC
Message-ID
<el239s$e1i$1@sea.gmane.org>
In-Reply-To
<87bqmj2zit.wl%cworth@cworth.org>
Carl Worth wrote:
Show 9 quoted lines
> But what might be very interesting is a modified "git-apply --index"
> that would not fail in this case, but would instead do the following:
> 
>         1. Apply the patch to the working tree
> 
>         2. Apply the patch to the index
> 
> And of course, if either fails then the entire apply operation fails,
> leaving no changes to working tree or to the index.

Or even new option to git-apply, namely --index-only, which would apply patch to index only.

BTW. With git-apply we have three possibilities to apply patch to: HEAD, index and working tree version, and three possibilities to store result in: working tree only, working tree and index both, and index only.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Carl WorthNext: Carl Worth
Message 3 of 13 in “[RFC] Two conceptually distinct commit commands”
  1. Carl WorthDec 4, 2006
  2. Carl WorthDec 4, 2006
  3. Jakub NarebskiDec 4, 2006
  4. Carl WorthDec 5, 2006
  5. Theodore TsoDec 5, 2006
  6. Junio C HamanoDec 5, 2006
  7. Carl WorthDec 5, 2006
  8. Junio C HamanoDec 6, 2006
  9. Carl WorthDec 6, 2006
  10. Commit order in git.git, was Re: [RFC] Two conceptually distinct commit commandsJohannes Schindelin, Dec 6, 2006
  11. Carl WorthDec 6, 2006
  12. Junio C HamanoDec 6, 2006
  13. Carl WorthDec 6, 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.