git cherry-pick -x默认

时间:2012-06-22 14:36:34

标签: git config cherry-pick

git cherry-pick的手册页中:

...

-x
    When recording the commit, append a line that says "(cherry picked
    from commit …)" to the original commit message in order to indicate
    which commit this change was cherry-picked from. ...

-r
    It used to be that the command defaulted to do -x described above,
    and -r was to disable it. Now the default is not to do -x so this
    option is a no-op.

...

是否有配置设置将本地默认设置回-x,并允许-r禁用它?我找不到一个,但我可能错过了它。

1 个答案:

答案 0 :(得分:6)

没有为git cherry-pick -x制作别名,不,这是不可能的。

(有趣的事实:在提交abd6970中更改了默认值。)