X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin%2Frevert.c;h=4b47ace36b51566acb5b748f679070f02cbbf568;hb=2e1e96126f93653badaa0afd17204e417dfc8e7d;hp=5ca81580d37b20e6f65fc8e8d1cdf09228f33ca1;hpb=2acf3658a31249d1a09573e2b6870871b5323121;p=git.git diff --git a/builtin/revert.c b/builtin/revert.c index 5ca81580d..4b47ace36 100644 --- a/builtin/revert.c +++ b/builtin/revert.c @@ -316,6 +316,13 @@ static int do_recursive_merge(struct commit *base, struct commit *next, index_fd = hold_locked_index(&index_lock, 1); read_cache(); + + /* + * NEEDSWORK: cherry-picking between branches with + * different end-of-line normalization is a pain; + * plumb in an option to set o.renormalize? + * (or better: arbitrary -X options) + */ init_merge_options(&o); o.ancestor = base ? base_label : "(empty tree)"; o.branch1 = "HEAD";