From: Junio C Hamano Date: Wed, 27 Apr 2005 22:36:01 +0000 (-0700) Subject: [PATCH] Use diff-tree -p -r instead of "git diff" in git-export. X-Git-Tag: v0.99~720 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ce9be4e4e8f397413ff5d87cda458c7e466897b1;p=git.git [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 --- diff --git a/git-export.c b/git-export.c index 6b5db93db..9c867a285 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");