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

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

 



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@xxxxxxxxx> 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@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
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]