Code

[PATCH] Apply N -> A status change in diff-helper
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 12 Sep 2005 01:03:43 +0000 (11:03 +1000)
committerJunio C Hamano <junkio@cox.net>
Mon, 12 Sep 2005 01:53:07 +0000 (18:53 -0700)
When the git diff status 'N' was changed to 'A', diff-helper.c was
not updated accordingly.  This means that it no longer shows the
diff for newly added files.

This patch makes that change in diff-helper.c.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff-helper.c

index 3fa50ee75b510c5396fe004160f80ddbe4955ca1..734956e4da47c1a7e982a7a9fd16afe9d49f9cf0 100644 (file)
@@ -91,7 +91,7 @@ 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 == DIFF_STATUS_RENAMED ||