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

Re: Is there a way to enforce '-x' when running git cherry-pick?

From
APAntriksh Pany <antriksh.pany@gmail.com>
Date
Jul 5, 2010, 05:11 UTC
Message-ID
<AANLkTikNktETMLyF6HUxxPb7pbMVSK5GRJquu_XPA05b@mail.gmail.com>
In-Reply-To
<AANLkTinWcGZksUfs33BcA-Dz6z8uvUFSW_SY6QQyDhVy@mail.gmail.com>
Hi

Not sure if there is an easy way to change the default behavior without meddling with code. An alias which can take the same name as a command may have helped (with possible downsides), but that does not work apparently.

You can effectively create a different command name through an alias like this: git config alias.cherry-pick-x "cherry-pick -x"

And henceforth use: git cherry-pick-x (You may use a shorter/different alias as might be convenient)

Thanks Antriksh Pany

On Mon, Jun 28, 2010 at 9:25 PM, Erez Zilber <erezzi.list@gmail.com> wrote:
Show 13 quoted lines
> Hi,
>
> Running git cherry-pick with the '-x' flag seems very helpful for me
> when cherry-picking commits between branches on a public reporsitory.
> Is there a way to run it with '-x' by default?
>
> Thanks,
> Erez
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
Previous: Erez Zilber
Message 2 of 2 in “Is there a way to enforce '-x' when running git cherry-pick?”
  1. Erez ZilberJun 28, 2010
  2. Antriksh PanyJul 5, 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.