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

Re: [PATCH] Attempt to make git-checkout man page a bit more clear.

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 21, 2006, 09:34 UTC
Message-ID
<emdk9f$c31$1@sea.gmane.org>
In-Reply-To
<BAYC1-PASMTP071BBC53B5CE7917CE8DE1AECE0@CEZ.ICE>
Sean wrote:
Show 14 quoted lines
> On Wed, 20 Dec 2006 23:47:42 -0800
> Junio C Hamano <junkio@cox.net> wrote:
> 
>> The 'restore from arbitrary tree-ish' form does not take -m as
>> far as I know.
>> 
>> Although it might be interesting to do a single-file three-way
>> merge, I do not think the command is _checkout_ anymore once it
>> starts doing that.
> 
> Yeah, I should have caught that.  As well, your explanation makes me
> wonder if it makes sense to change <branch> in the third form to
> <tree-ish> ?  Would you like an updated patch or will you just make
> the touch up(s) yourself?
Better not, because if I remember correctly
  $ git checkout [--] <paths>...

would replace the contents of the named paths in your working tree from the index, while

  $ git checkout <commit-ish> [--] <paths>...

would replace the contents of the named paths in your working tree from the given commit (given branch, perhaps given tree-ish).

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Sean
Message 4 of 4 in “Attempt to make git-checkout man page a bit more clear.”
  1. Attempt to make git-checkout man page a bit more clear.Sean, Dec 21, 2006
  2. Junio C HamanoDec 21, 2006
  3. SeanDec 21, 2006
  4. Jakub NarebskiDec 21, 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.