diff options
author | Derrick Stolee <derrickstolee@github.com> | 2022-07-19 18:33:42 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-07-19 12:49:04 -0700 |
commit | 3113fedaeb67eed4c46ef7bdd670b8406317a303 (patch) | |
tree | 8bc5de79a9222aa73d7a9f40f3878e17afe8c42a /builtin/rebase.c | |
parent | b3b1a21d1a5df87e81fa8b53c6c3cf9760ca12d4 (diff) | |
download | git-3113fedaeb67eed4c46ef7bdd670b8406317a303.tar.gz |
rebase: add rebase.updateRefs config option
The previous change added the --update-refs command-line option. For
users who always want this mode, create the rebase.updateRefs config
option which behaves the same way as rebase.autoSquash does with the
--autosquash option.
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rebase.c')
-rw-r--r-- | builtin/rebase.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/builtin/rebase.c b/builtin/rebase.c index 2497533e8f..56e4214b44 100644 --- a/builtin/rebase.c +++ b/builtin/rebase.c @@ -802,6 +802,11 @@ static int rebase_config(const char *var, const char *value, void *data) return 0; } + if (!strcmp(var, "rebase.updaterefs")) { + opts->update_refs = git_config_bool(var, value); + return 0; + } + if (!strcmp(var, "rebase.reschedulefailedexec")) { opts->reschedule_failed_exec = git_config_bool(var, value); return 0; |