Git development
 help / color / mirror / Atom feed
* [PATCH] Built-in diff driver shows Index: line.
@ 2005-04-28 19:14 Junio C Hamano
  2005-04-28 20:05 ` Linus Torvalds
  0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2005-04-28 19:14 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: git

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);
 }
 


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-04-28 22:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-28 19:14 [PATCH] Built-in diff driver shows Index: line Junio C Hamano
2005-04-28 20:05 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox