diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-01-18 18:13:01 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-18 18:13:01 -0800 |
commit | 4a88fb7ffc32bdfdfab2605430514d92aba25b8a (patch) | |
tree | 77d37de207313b760eb08c502be1ea98a18351e9 /builtin-merge.c | |
parent | 26b9f5cc99a35d4f678c2f565e48237fc9515444 (diff) | |
parent | cb6020bb017405cc3e7f1faea6f30d4fd1b62e70 (diff) | |
download | git-4a88fb7ffc32bdfdfab2605430514d92aba25b8a.tar.gz |
Merge branch 'jc/rerere'
* jc/rerere:
Teach --[no-]rerere-autoupdate option to merge, revert and friends
Diffstat (limited to 'builtin-merge.c')
-rw-r--r-- | builtin-merge.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin-merge.c b/builtin-merge.c index f1c84d759d..82e2a0491a 100644 --- a/builtin-merge.c +++ b/builtin-merge.c @@ -52,6 +52,7 @@ static struct strategy **use_strategies; static size_t use_strategies_nr, use_strategies_alloc; static const char *branch; static int verbosity; +static int allow_rerere_auto; static struct strategy all_strategy[] = { { "recursive", DEFAULT_TWOHEAD | NO_TRIVIAL }, @@ -170,6 +171,7 @@ static struct option builtin_merge_options[] = { "allow fast-forward (default)"), OPT_BOOLEAN(0, "ff-only", &fast_forward_only, "abort if fast-forward is not possible"), + OPT_RERERE_AUTOUPDATE(&allow_rerere_auto), OPT_CALLBACK('s', "strategy", &use_strategies, "strategy", "merge strategy to use", option_parse_strategy), OPT_CALLBACK('m', "message", &merge_msg, "message", @@ -790,7 +792,7 @@ static int suggest_conflicts(void) } } fclose(fp); - rerere(); + rerere(allow_rerere_auto); printf("Automatic merge failed; " "fix conflicts and then commit the result.\n"); return 1; |