X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=diff-helper.c;h=734956e4da47c1a7e982a7a9fd16afe9d49f9cf0;hb=65a9289d7e5207ed66199db94593b31fa5550fde;hp=6649fb548f798c84342168b8ef9fe9211093fbfc;hpb=e68b6f1525c670f474d735009fec419473df0962;p=git.git diff --git a/diff-helper.c b/diff-helper.c index 6649fb54..734956e4 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) { @@ -91,10 +91,11 @@ int main(int ac, const char **av) { if (*cp++ != ' ') break; status = *cp++; - if (!strchr("MCRNDU", status)) + if (!strchr("AMCRDU", 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 */