From: Junio C Hamano <junkio@cox.net>
To: Linus Torvalds <torvalds@osdl.org>
Cc: git@vger.kernel.org
Subject: [PATCH] Built-in diff driver shows Index: line.
Date: Thu, 28 Apr 2005 12:14:32 -0700 [thread overview]
Message-ID: <7vy8b27lyf.fsf@assigned-by-dhcp.cox.net> (raw)
As suggested by Linus as a workaround to unconfuse diffstat,
this patch adds Index: line before the diff output the built-in
driver produces.
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
diff.c | 2 ++
1 files changed, 2 insertions(+)
# - 04/28 11:20 No need to say diff-tree -p -r in git-export
# + 04/28 11:25 Show Index: line from built-in diff driver.
Index: diff.c
--- k/diff.c (mode:100644)
+++ l/diff.c (mode:100644)
@@ -125,6 +125,8 @@ static void builtin_diff(const char *nam
next_at += snprintf(cmd+next_at, cmd_size-next_at,
diff_arg, input_name_sq[0], input_name_sq[1]);
+ printf("Index: %s\n", name);
+ fflush(NULL);
execlp("/bin/sh","sh", "-c", cmd, NULL);
}
next reply other threads:[~2005-04-28 19:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-28 19:14 Junio C Hamano [this message]
2005-04-28 20:05 ` [PATCH] Built-in diff driver shows Index: line Linus Torvalds
2005-04-28 22:09 ` Junio C Hamano
2005-04-28 22:30 ` Linus Torvalds
2005-04-28 22:41 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vy8b27lyf.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox