On Tuesday 30 December 2008, Junio C Hamano [off-list ref] wrote
about 'Re: for newbs = little exercise / tutorial / warmup for windows and
other non-sophisticated new Git users :-) [Scanned]':
"Boyd Stephen Smith Jr." [off-list ref] writes:
quoted
"git checkout <branch> <paths>" is similar to "hg revert -r <branch>
<paths>",
No it is not.
The form of the command is makes this request:
Please look into that named <tree-ish>, and check out the named
<paths> out of it to my work tree.
That seems similar to "hg revert":
Using the -r option, revert the given files or directories to their
contents as of a specific revision.
Because the reason I want them in
my work tree is so that I can include them as part of the next commit
I am preparing to create in the index, please update these paths in
my index while at it.
This part is odd to me, but does make some sense. I can only think of a
few reasons to retrieve a file from a different tree-ish without
immediately turning around and doing "git add <bar>".
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss@iguanasuicide.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/ \_/