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

Re: [PATCH] [checkout-index] Give names to stages

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 4, 2006, 11:36 UTC
Message-ID
<el113s$25v$1@sea.gmane.org>
In-Reply-To
<Pine.LNX.4.63.0612041149410.28348@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin wrote:
Show 17 quoted lines
> On Sun, 3 Dec 2006, Luben Tuikov wrote:
> 
>> This patch merely allows the user to say
>>    git-checkout-index --stage=ours their_broken_file.c
>> instead of
>>    git-checkout-index --stage=2 their_broken_file.c
>> and similarly for "theirs", etc.
> 
> Dunno. When this problem hits me, I usually do
> 
>       git diff --theirs their_broken_file.c
> 
> anyway, to see what it is doing (colour and all). When I am satisfied, 
> that "theirs" is really what I want, I just go back one in history, and 
> append a call to git-apply like this:
> 
>       git diff --theirs their_broken_file.c | git apply --index
Then
        git checkout --theirs their_broken_file.c
is obvious simplification.
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 6 of 7 in “Re: [PATCH] [checkout-index] Give names to stages”
  1. Junio C HamanoDec 4, 2006
  2. Luben TuikovDec 4, 2006
  3. Junio C HamanoDec 4, 2006
  4. Luben TuikovDec 4, 2006
  5. Johannes SchindelinDec 4, 2006
  6. Jakub NarebskiDec 4, 2006
  7. Johannes SchindelinDec 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.