X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=diff-helper.c;h=3fa50ee75b510c5396fe004160f80ddbe4955ca1;hb=89bc8c785e20258efba3b2b5ffc26098fa0b8bc8;hp=6649fb548f798c84342168b8ef9fe9211093fbfc;hpb=98e031f0bb6e857c684e6db24d03d22cfc1a532a;p=git.git diff --git a/diff-helper.c b/diff-helper.c index 6649fb54..3fa50ee7 100644 --- a/diff-helper.c +++ b/diff-helper.c @@ -20,7 +20,7 @@ static void flush_them(int ac, const char **av) diff_flush(DIFF_FORMAT_PATCH, '\n'); } -static const char *diff_helper_usage = +static const char diff_helper_usage[] = "git-diff-helper [-z] [-O] [-S] [--pickaxe-all] [...]"; int main(int ac, const char **av) { @@ -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 */