{"thread":{"id":"1775","subject":"[PATCH] Apply N -> A status change in diff-helper","startedAt":"2005-09-12T01:03:43Z","lastAt":"2005-09-12T01:28:01Z","messageCount":2,"participants":["Herbert Xu","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"8350","messageId":"20050912010343.GA32376@gondor.apana.org.au","threadId":"1775","inReplyTo":null,"subject":"[PATCH] Apply N -> A status change in diff-helper","fromName":"Herbert Xu","fromEmail":"herbert@gondor.apana.org.au","sentAt":"2005-09-12T01:03:43Z","receivedAt":"2005-09-12T01:03:43Z","isPatch":true,"sender":{"key":"herbert@gondor.apana.org.au","avatar":null},"body":"Hi:\n\nWhen the git diff status 'N' was changed to 'A', diff-helper.c was\nnot updated accordingly.  This means that it no longer shows the\ndiff for newly added files.\n\nThis patch makes that change in diff-helper.c.\n\nSigned-off-by: Herbert Xu <herbert@gondor.apana.org.au>\n\nCheers,\n-- \nVisit Openswan at http://www.openswan.org/\nEmail: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>\nHome Page: http://gondor.apana.org.au/~herbert/\nPGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt\n\n\ndiff --git a/diff-helper.c b/diff-helper.c\n--- a/diff-helper.c\n+++ b/diff-helper.c\n@@ -91,7 +91,7 @@ int main(int ac, const char **av) {\n \t\t\tif (*cp++ != ' ')\n \t\t\t\tbreak;\n \t\t\tstatus = *cp++;\n-\t\t\tif (!strchr(\"MCRNDU\", status))\n+\t\t\tif (!strchr(\"AMCRDU\", status))\n \t\t\t\tbreak;\n \t\t\ttwo_paths = score = 0;\n \t\t\tif (status == DIFF_STATUS_RENAMED ||\n"},{"id":"8354","messageId":"7vd5nfoz1a.fsf@assigned-by-dhcp.cox.net","threadId":"1775","inReplyTo":"20050912010343.GA32376@gondor.apana.org.au","subject":"Re: [PATCH] Apply N -> A status change in diff-helper","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-09-12T01:28:01Z","receivedAt":"2005-09-12T01:28:01Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Herbert Xu <herbert@gondor.apana.org.au> writes:\n\n> When the git diff status 'N' was changed to 'A', diff-helper.c was\n> not updated accordingly.\n\n*BLUSH*  Thanks.\n"}]}