X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=diff-helper.c;h=07ccd7cc38d02843d339a9feb21088912f63dcba;hb=b134922992e3051e7095b1e76a89361fea86206d;hp=5a3198ac8e239a784ead5f0f15a67afa5a7a14a0;hpb=f2ce9fde57513af026e0641073a6781a086251d5;p=git.git diff --git a/diff-helper.c b/diff-helper.c index 5a3198ac..07ccd7cc 100644 --- a/diff-helper.c +++ b/diff-helper.c @@ -17,11 +17,11 @@ static void flush_them(int ac, const char **av) diffcore_std_no_resolve(av + 1, pickaxe, pickaxe_opts, orderfile, diff_filter); - diff_flush(DIFF_FORMAT_PATCH); + diff_flush(DIFF_FORMAT_PATCH, '\n'); } static const char *diff_helper_usage = - "git-diff-helper [-z] [-S] [-O] paths..."; +"git-diff-helper [-z] [-O] [-S] [--pickaxe-all] [...]"; int main(int ac, const char **av) { struct strbuf sb; @@ -94,7 +94,8 @@ int main(int ac, const char **av) { if (!strchr("MCRNDU", status)) break; two_paths = score = 0; - if (status == 'R' || status == 'C') + if (status == DIFF_STATUS_RENAMED || + status == DIFF_STATUS_COPIED) two_paths = 1; /* pick up score if exists */