summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3e7589b)
raw | patch | inline | side by side (parent: 3e7589b)
author | Jonathan Nieder <jrnieder@gmail.com> | |
Thu, 5 Aug 2010 11:15:32 +0000 (06:15 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 6 Aug 2010 16:20:00 +0000 (09:20 -0700) |
Add a "renormalize" option to struct merge_options so callers can
decide on a case-by-case basis whether the merge is likely to have
overlapped with a change in smudge/clean rules. The option defaults
to the global merge_renormalize setting for now.
No change in behavior intended.
Cc: Eyvind Bernhardsen <eyvind.bernhardsen@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
decide on a case-by-case basis whether the merge is likely to have
overlapped with a change in smudge/clean rules. The option defaults
to the global merge_renormalize setting for now.
No change in behavior intended.
Cc: Eyvind Bernhardsen <eyvind.bernhardsen@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-recursive.c | patch | blob | history | |
merge-recursive.h | patch | blob | history |
diff --git a/merge-recursive.c b/merge-recursive.c
index 2b55fc27dd3739cc92c3435f811f37af8081fbe7..8a49844c909478f0e5bf379e62f22555767d0b4c 100644 (file)
--- a/merge-recursive.c
+++ b/merge-recursive.c
print_index_entry("\tpath: ", entry);
*/
int clean_merge = 1;
- int normalize = merge_renormalize;
+ int normalize = o->renormalize;
unsigned o_mode = entry->stages[1].mode;
unsigned a_mode = entry->stages[2].mode;
unsigned b_mode = entry->stages[3].mode;
o->buffer_output = 1;
o->diff_rename_limit = -1;
o->merge_rename_limit = -1;
+ o->renormalize = merge_renormalize;
git_config(merge_recursive_config, o);
if (getenv("GIT_MERGE_VERBOSITY"))
o->verbosity =
diff --git a/merge-recursive.h b/merge-recursive.h
index b831293b3865ae52584565039e4a893c3c6f45ff..c5fbe796bb799d02d115420d16657788acc1f0d8 100644 (file)
--- a/merge-recursive.h
+++ b/merge-recursive.h
} recursive_variant;
const char *subtree_shift;
unsigned buffer_output : 1;
+ unsigned renormalize : 1;
int verbosity;
int diff_rename_limit;
int merge_rename_limit;