git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] prepare deprecation of git-revert

From
Pierre Habouzit <madcoder@debian.org>
Date
Oct 31, 2008, 16:54 UTC
Message-ID
<20081031165401.GC627@artemis.corp>
In-Reply-To
<m33aichgc1.fsf@localhost.localdomain>
On Fri, Oct 31, 2008 at 04:36:33PM +0000, Jakub Narebski wrote:
Show 21 quoted lines
> Pierre Habouzit <madcoder@debian.org> writes:
> 
> > * Rename builtin-revert.c into builtin-cherry-pick.c
> > 
> > * Add option -R/--revert to git-cherry-pick.
> >   Document it by taking the current content of git-revert manpage for the
> >   option.
> > 
> > * get rid of the no_replay initialization, just ignore it when we're in
> >   the revert case, it makes really no sense to error out.
> > 
> > * put the warning of deprecation in cmd_revert, #if 0-ed out for now.
> 
> > +#if 0
> > +	warning("git revert is deprecated, please use git cherry-pick --revert/-R instead");
> > +#endif
> 
> By the way, Mercurial names this command IIRC 'hg backout'. 
> 
> But I think that adding '-R' option to git-cherry-pick is a good idea
> even if we don't go deprecating git-revert.

Actually part of the "Git UI sucks at time"-talk by pasy, we somehow decided that git-revert would probably be deprecated in the future to avoid the clash between what people coming from other's SCM worlds expect it to be.

I don't remember what the tentative schedule was, that's why I left the warning commented out for now.

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org
Previous: Jakub NarebskiNext: Theodore Tso
Message 4 of 16 in “prepare deprecation of git-revert”
  1. prepare deprecation of git-revertPierre Habouzit, Oct 31, 2008
  2. Pierre HabouzitOct 31, 2008
  3. Jakub NarebskiOct 31, 2008
  4. Pierre HabouzitOct 31, 2008
  5. Theodore TsoOct 31, 2008
  6. Andreas EricssonNov 1, 2008
  7. Alex RiesenOct 31, 2008
  8. Pierre HabouzitOct 31, 2008
  9. Alex RiesenOct 31, 2008
  10. Johannes SchindelinOct 31, 2008
  11. Junio C HamanoOct 31, 2008
  12. Matthieu MoyNov 1, 2008
  13. Nguyen Thai Ngoc DuyNov 2, 2008
  14. Johannes SchindelinNov 2, 2008
  15. Jeff KingNov 2, 2008
  16. Pierre HabouzitNov 2, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.