From ce9be4e4e8f397413ff5d87cda458c7e466897b1 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 27 Apr 2005 15:36:01 -0700 Subject: [PATCH] [PATCH] Use diff-tree -p -r instead of "git diff" in git-export. Now diff-tree can produce patch itself, there is no reason to depend on Cogito to show diff in the git-export output anymore. Signed-off-by: Junio C Hamano Signed-off-by: Linus Torvalds --- git-export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-export.c b/git-export.c index 6b5db93dbe..9c867a285b 100644 --- a/git-export.c +++ b/git-export.c @@ -18,7 +18,7 @@ void show_commit(struct commit *commit) char *against = sha1_to_hex(commit->parents->item->object.sha1); printf("\n\n======== diff against %s ========\n", against); fflush(NULL); - sprintf(cmdline, "git diff -r %s:%s", against, hex); + sprintf(cmdline, "diff-tree -p -r %s %s", against, hex); system(cmdline); } printf("======== end ========\n\n");