summaryrefslogtreecommitdiff
path: root/diff-helper.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2005-09-12 01:03:43 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-09-12 01:53:07 (GMT)
commit65a9289d7e5207ed66199db94593b31fa5550fde (patch)
tree0ad353d993cc8ac4e300692fe872610bbb7b80c9 /diff-helper.c
parent127bf00f7d2fee044602bec8c76ec9d6bf368025 (diff)
downloadgit-65a9289d7e5207ed66199db94593b31fa5550fde.zip
git-65a9289d7e5207ed66199db94593b31fa5550fde.tar.gz
git-65a9289d7e5207ed66199db94593b31fa5550fde.tar.bz2
[PATCH] Apply N -> A status change in diff-helper
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>
Diffstat (limited to 'diff-helper.c')
-rw-r--r--diff-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff-helper.c b/diff-helper.c
index 3fa50ee..734956e 100644
--- a/diff-helper.c
+++ b/diff-helper.c
@@ -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 ||