diff options
author | Paul Tan <pyokagan@gmail.com> | 2015-06-18 18:54:09 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-18 13:17:53 -0700 |
commit | 81dbd768dbeba4b3d65c485968920347460e309c (patch) | |
tree | 5893a63b2f5278836c25feaf8ab0eb18852a4aa5 /builtin/send-pack.c | |
parent | pull: teach git pull about --rebase (diff) | |
download | tgif-81dbd768dbeba4b3d65c485968920347460e309c.tar.xz |
pull: configure --rebase via branch.<name>.rebase or pull.rebase
Since cd67e4d (Teach 'git pull' about --rebase, 2007-11-28),
fetch+rebase could be set by default by defining the config variable
branch.<name>.rebase. This setting can be overriden on the command line
by --rebase and --no-rebase.
Since 6b37dff (pull: introduce a pull.rebase option to enable --rebase,
2011-11-06), git-pull --rebase can also be configured via the
pull.rebase configuration option.
Re-implement support for these two configuration settings by introducing
config_get_rebase() which is called before parse_options() to set the
default value of opt_rebase.
Helped-by: Stefan Beller <sbeller@google.com>
Helped-by: Duy Nguyen <pclouds@gmail.com>
Signed-off-by: Paul Tan <pyokagan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/send-pack.c')
0 files changed, 0 insertions, 0 deletions