git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
HXHerbert Xu <herbert@gondor.apana.org.au>
Date
Sep 12, 2005, 01:03 UTC
Message-ID
<20050912010343.GA32376@gondor.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 ||
Next: Junio C Hamano
Message 1 of 2 in “Apply N -> A status change in diff-helper”
  1. Apply N -> A status change in diff-helperHerbert Xu, Sep 12, 2005
  2. Junio C HamanoSep 12, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.