{"thread":{"id":"25542","subject":"[PATCH] Fix copy-pasted comments related to tree diff handling.","startedAt":"2010-10-24T21:03:10Z","lastAt":"2010-10-24T21:03:10Z","messageCount":1,"participants":["Yann Dirson"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"154348","messageId":"1287954190-13905-1-git-send-email-ydirson@altern.org","threadId":"25542","inReplyTo":null,"subject":"[PATCH] Fix copy-pasted comments related to tree diff handling.","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2010-10-24T21:03:10Z","receivedAt":"2010-10-24T21:03:10Z","isPatch":true,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"---\n diff.c |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/diff.c b/diff.c\nindex 71efa8e..ba57bfa 100644\n--- a/diff.c\n+++ b/diff.c\n@@ -3532,7 +3532,7 @@ static void diff_flush_stat(struct diff_filepair *p, struct diff_options *o,\n \n \tif ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) ||\n \t    (DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode)))\n-\t\treturn; /* no tree diffs in patch format */\n+\t\treturn; /* no useful stat for tree diffs */\n \n \trun_diffstat(p, o, diffstat);\n }\n@@ -3545,7 +3545,7 @@ static void diff_flush_checkdiff(struct diff_filepair *p,\n \n \tif ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) ||\n \t    (DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode)))\n-\t\treturn; /* no tree diffs in patch format */\n+\t\treturn; /* nothing to check in tree diffs */\n \n \trun_checkdiff(p, o);\n }\n-- \n1.7.2.3\n"}]}