Re: Revert behavior [Was: Re: [ANNOUNCE] yap: Yet Another (Git) Porcelain]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Elijah Newren wrote:
> On Mon, Sep 8, 2008 at 10:25 PM, Govind Salinas
> <govind@xxxxxxxxxxxxxxxxx> wrote:
> > On Mon, Sep 8, 2008 at 8:05 PM, Steven Walter <stevenrwalter@xxxxxxxxx> wrote:
> 
> > I had some very different ideas along the lines of reducing the number of
> > commands (where the commands do something similar just DWIM rather
> > than force me to remember or read docs on different commands), making
> > commands look similar to commands from other SCMs (revert should do
> > what it does for me in all the other SCMs that I have used, which is to
> > checkout the HEAD copy into the working directory)
> 
> Your description of revert in various systems isn't quite accurate; it
> isn't necessarily HEAD, since most systems (at least bzr and hg) can
> also revert files to revisions earlier than HEAD.  In fact, questions
> of how to do that have come up several times on this list, so you
> wouldn't want to exclude that case.  Also, the revert behavior of git
> (minus perhaps the default auto-commit) comes in pretty handy too
> sometimes, and I can't easily find it in other systems (I suspect many
> just drop back to diff + patch to handle the case that git provides).
[...]

By the way, I think the fact that in different SCMs meaning of
"$scm revert" and of "$scm reset" differs widely caused Mercurial
to adopt "hg backout" for creating a commit which reverts changes
(cherry-pick -R), and "hg rollback" to undo last commit.

-- 
Jakub Narebski
Poland
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux