Re: What I miss from Cogito...

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Florian Weimer <fw@...>
Cc: <git@...>
Date: Sunday, March 23, 2008 - 8:16 pm

On Sun, Mar 23, 2008 at 08:14:47PM +0100, Florian Weimer wrote:

Yeah, it's not at all intuitive.  I've been using git for quite some
time and had *absolutely* *no* *idea* that "git checkout <treeish> --
path" did what "bk revert" and "hg revert" does.  In fact, I'm pretty
sure I remember asking for this functionality a while back, and being
told the right answer was "git show HEAD:pathname > pathname", and I
kept on typing it until I got sick and tired of it, and so I created
my short-hand shell script.  

And the fact that Peter was using "git reset --hard -- pathname" is
another hint that it isn't at *all* obvious that "git checkout" does
two completely different things, and it's not something that you're
likely to intuit from the name or looking at the top-level git man
page (where the summary in the top-level git manpage is, "checkout and
switch to a branch").

If we were going to separate the two commands out, I'd use the name
"git revert-file", because that's what people who are coming from bk
or hg are used to (where "revert" means to undo the local edits done
to a particular file, as opposed to the git meaning of undoing a
particular commit).

						- Ted


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
What I miss from Cogito..., H. Peter Anvin, (Sun Mar 23, 1:15 pm)
Re: What I miss from Cogito..., Daniel Barkalow, (Sun Mar 23, 3:16 pm)
Re: What I miss from Cogito..., H. Peter Anvin, (Sun Mar 23, 3:19 pm)
Re: What I miss from Cogito..., Junio C Hamano, (Sun Mar 23, 2:34 pm)
Re: What I miss from Cogito..., H. Peter Anvin, (Sun Mar 23, 2:58 pm)
Re: What I miss from Cogito..., Junio C Hamano, (Sun Mar 23, 2:59 pm)
Re: What I miss from Cogito..., Johannes Schindelin, (Sun Mar 23, 2:31 pm)
Re: What I miss from Cogito..., Theodore Tso, (Sun Mar 23, 1:38 pm)
Re: What I miss from Cogito..., Luciano Rocha, (Sun Mar 23, 2:21 pm)
Re: What I miss from Cogito..., Florian Weimer, (Sun Mar 23, 3:14 pm)
Re: What I miss from Cogito..., Theodore Tso, (Sun Mar 23, 8:16 pm)
Re: What I miss from Cogito..., Björn, (Sun Mar 23, 9:40 pm)
Re: What I miss from Cogito..., Theodore Tso, (Sun Mar 23, 10:14 pm)
Re: What I miss from Cogito..., Björn, (Sun Mar 23, 10:57 pm)
Re: What I miss from Cogito..., Junio C Hamano, (Sun Mar 23, 10:53 pm)
Re: What I miss from Cogito..., Mike Hommey, (Sun Mar 23, 3:00 pm)
Re: What I miss from Cogito..., Mike Hommey, (Sun Mar 23, 3:07 pm)
Re: What I miss from Cogito..., Bruce Stephens, (Sun Mar 23, 3:07 pm)
Re: What I miss from Cogito..., H. Peter Anvin, (Sun Mar 23, 1:46 pm)
Re: What I miss from Cogito..., Petr Baudis, (Wed Mar 26, 10:36 pm)