# [PATCH] Apply N -> A status change in diff-helper

2 messages from 2005-09-12 to 2005-09-12. Participants: Herbert Xu, Junio C Hamano.
Thread: https://gitlist.dev/t/1775

## Herbert Xu, 2005-09-12 01:03

Subject: [PATCH] Apply N -> A status change in diff-helper
Message-ID: <20050912010343.GA32376@gondor.apana.org.au>
URL: https://gitlist.dev/e/20050912010343.GA32376%40gondor.apana.org.au

```
Hi:

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>

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


diff --git a/diff-helper.c b/diff-helper.c
--- 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 ||

```

## Junio C Hamano, 2005-09-12 01:28

Subject: Re: [PATCH] Apply N -> A status change in diff-helper
Message-ID: <7vd5nfoz1a.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vd5nfoz1a.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20050912010343.GA32376@gondor.apana.org.au>

```
Herbert Xu <herbert@gondor.apana.org.au> writes:

> When the git diff status 'N' was changed to 'A', diff-helper.c was
> not updated accordingly.

*BLUSH*  Thanks.

```
