diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-10-26 21:40:54 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-10-26 21:40:54 -0700 |
commit | 75b17fee72a0f78e0ad31728771231f8b3ed4d56 (patch) | |
tree | 190461ec1fedaf1a3c5d5d7fc9201a5a6455a144 /builtin/merge-recursive.c | |
parent | Merge branch 'ml/completion-zsh' (diff) | |
parent | merge-recursive: options to ignore whitespace changes (diff) | |
download | tgif-75b17fee72a0f78e0ad31728771231f8b3ed4d56.tar.xz |
Merge branch 'jf/merge-ignore-ws'
* jf/merge-ignore-ws:
merge-recursive: options to ignore whitespace changes
merge-recursive --patience
ll-merge: replace flag argument with options struct
merge-recursive: expose merge options for builtin merge
Diffstat (limited to 'builtin/merge-recursive.c')
-rw-r--r-- | builtin/merge-recursive.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/builtin/merge-recursive.c b/builtin/merge-recursive.c index 78b9db76a0..c33091b3ed 100644 --- a/builtin/merge-recursive.c +++ b/builtin/merge-recursive.c @@ -2,6 +2,7 @@ #include "commit.h" #include "tag.h" #include "merge-recursive.h" +#include "xdiff-interface.h" static const char builtin_merge_recursive_usage[] = "git %s <base>... -- <head> <remote> ..."; @@ -40,19 +41,7 @@ int cmd_merge_recursive(int argc, const char **argv, const char *prefix) if (!prefixcmp(arg, "--")) { if (!arg[2]) break; - if (!strcmp(arg+2, "ours")) - o.recursive_variant = MERGE_RECURSIVE_OURS; - else if (!strcmp(arg+2, "theirs")) - o.recursive_variant = MERGE_RECURSIVE_THEIRS; - else if (!strcmp(arg+2, "subtree")) - o.subtree_shift = ""; - else if (!prefixcmp(arg+2, "subtree=")) - o.subtree_shift = arg + 10; - else if (!strcmp(arg+2, "renormalize")) - o.renormalize = 1; - else if (!strcmp(arg+2, "no-renormalize")) - o.renormalize = 0; - else + if (parse_merge_opt(&o, arg + 2)) die("Unknown option %s", arg); continue; } |