All of lore.kernel.org
 help / color / mirror / Atom feed
* Is there a way to enforce '-x' when running git cherry-pick?
@ 2010-06-28 15:55 Erez Zilber
  2010-07-05  5:11 ` Antriksh Pany
  0 siblings, 1 reply; 2+ messages in thread
From: Erez Zilber @ 2010-06-28 15:55 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Is there a way to enforce '-x' when running git cherry-pick?
  2010-06-28 15:55 Is there a way to enforce '-x' when running git cherry-pick? Erez Zilber
@ 2010-07-05  5:11 ` Antriksh Pany
  0 siblings, 0 replies; 2+ messages in thread
From: Antriksh Pany @ 2010-07-05  5:11 UTC (permalink / raw)
  To: Erez Zilber; +Cc: git

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:
> 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
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-05  5:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-28 15:55 Is there a way to enforce '-x' when running git cherry-pick? Erez Zilber
2010-07-05  5:11 ` Antriksh Pany

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.