login
Header Space

 
 

Re: [PATCH] git-revert is one of the most misunderstood command in git, help users out.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: Junio C Hamano <gitster@...>, Steven Grimm <koreth@...>, <git@...>
Date: Tuesday, November 6, 2007 - 8:48 am

On Tue, Nov 06, 2007 at 12:25:33PM +0000, Johannes Schindelin wrote:
o the
it

  Yeah but that's what checkout is for. The main source of iritation for
new users comes (IMHO) from svn, where `svn revert path/to/file` is part
of the workflow: in case of a conflict when you `svn up`, you have
either to:
  (1) fix the conflict and `svn resolved path/to/file`
  (2) drop your changes and take the trunk version `svn revert path/to/file`

People really expect git revert -- path/to/file to do the same as git
checkout HEAD -- path/to/file. Though I believe that like I said, maybe
we don't wan't git revert -- path/to/file to become the first class
command to do that, but rather to do what the user meant, hinting him in
the direction of the proper command. I wasn't really advocating that
git-revert should be a complete implementation of what git checkout
<comitish> -- <paths> does. YMMV.

--
=C2=B7O=C2=B7  Pierre Habouzit
=C2=B7=C2=B7O                                                madcoder@debia=
n.org
OOO                                                http://www.madism.org
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] git-revert is one of the most misunderstood comm..., Johannes Schindelin, (Mon Nov 5, 7:40 pm)
Re: [PATCH] git-revert is one of the most misunderstood comm..., Johannes Schindelin, (Tue Nov 6, 8:25 am)
Re: [PATCH] git-revert is one of the most misunderstood comm..., Pierre Habouzit, (Tue Nov 6, 8:48 am)
Re: [PATCH] git-revert is one of the most misunderstood comm..., Johannes Schindelin, (Tue Nov 6, 8:16 am)
Re: [PATCH] git-revert is one of the most misunderstood comm..., Johannes Schindelin, (Mon Nov 5, 11:18 pm)
Re: [PATCH] git-revert is one of the most misunderstood comm..., Johannes Schindelin, (Tue Nov 6, 8:32 am)
Re: [PATCH] git-revert is one of the most misunderstood comm..., Johannes Schindelin, (Tue Nov 6, 6:25 pm)
Re: [PATCH] git-revert is one of the most misunderstood comm..., Johannes Schindelin, (Wed Nov 7, 7:08 am)
Re: [PATCH] git-revert is one of the most misunderstood comm..., Johannes Schindelin, (Tue Nov 6, 2:27 pm)
Re: [PATCH] git-revert is one of the most misunderstood comm..., Johannes Schindelin, (Tue Nov 6, 6:21 pm)
Re: [PATCH] git-revert is one of the most misunderstood comm..., Alejandro Martinez Ruiz, (Mon Nov 5, 5:54 pm)
Re: [PATCH] git-revert is one of the most misunderstood comm..., Alejandro Martinez Ruiz, (Mon Nov 5, 7:41 pm)
speck-geostationary