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

Re: [RFC/PATCH] rebase: add -x option to record original commit name

From
tytso@mit.edu <tytso@mit.edu>
Date
Feb 6, 2010, 13:32 UTC
Message-ID
<20100206133227.GE321@thunk.org>
In-Reply-To
<76718491002052119j5d6bae35s146bed8da03e3983@mail.gmail.com>
On Sat, Feb 06, 2010 at 12:19:02AM -0500, Jay Soffian wrote:
Show 7 quoted lines
> On Fri, Feb 5, 2010 at 11:43 PM, Junio C Hamano <gitster@pobox.com> wrote:
> > How could that be a counterproposal to a deprecation of -x and adding
> > hooks as a replacement, as a solution to more general issues?
> 
> Sorry, it's been a long week and I wasn't thinking clearly.
> 
> Yes, adding post-cherry/rebase hook(s) would keep all parties happy. :-)

I really don't think it's a contamination of the log when it's used to record a cherry pick of patch from the dev stream to an older maintainance branch, but I'll grudgingly accept doing via a hook; but can there be an easy way to control whether or not the hook is actually executed?

*Normally* I don't want cherry-pick -x, but some of the time I do want it, and manually enabling and disabling the hook by having to do some kind of "chmod -x .git/hooks/cherry-pick" command. I suppose I could create an alias for cherry-pick-record which does a "chmod a+x `git rev-parse --git-dir`/hooks/cherry-pick; git cherry-pick $*; chmod a-x `git rev-parse --git-dir`/hooks/cherry-pick", but that seems really hacky. :-(

So it would be nice if there was some kind of command-line option to cherry-pick which could be passed to the hook script.

					- Ted
Previous: Jay SoffianNext: Junio C Hamano
Message 9 of 10 in “rebase: add -x option to record original commit name”
  1. rebase: add -x option to record original commit nameJay Soffian, Feb 6, 2010
  2. Junio C HamanoFeb 6, 2010
  3. Jay SoffianFeb 6, 2010
  4. Jay SoffianFeb 6, 2010
  5. Junio C HamanoFeb 6, 2010
  6. Jay SoffianFeb 6, 2010
  7. Junio C HamanoFeb 6, 2010
  8. Jay SoffianFeb 6, 2010
  9. tytso@mit.eduFeb 6, 2010
  10. Junio C HamanoFeb 6, 2010

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.