Re: [PATCH] git-revert is one of the most misunderstood command in git, help users out.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 6, 2007, 02:51 UTC
- Message-ID
- <7vsl3kjdct.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <Pine.LNX.4.64.0711052325090.4362@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> In the same way, I would expect "git revert <commit> -- file" to undo the > changes in that commit to _that_ file (something like "git merge-file > file <commit>:file <commit>^:file"), but this time commit it, since it > was committed at one stage.
Allowing people to revert or cherry pick partially by using paths limiter is a very good idea; the whole "it comes from a commit so we also commit" feels an utter nonsense, though.