From: Linus Torvalds Date: Thu, 21 Apr 2005 01:48:27 +0000 (-0700) Subject: Fix up git-export to use the lower-level interfaces for diff generation. X-Git-Tag: v0.99~788 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=32347c375250fd470973a5d76185cac718955fd5;p=git.git Fix up git-export to use the lower-level interfaces for diff generation. The high-level helpers seem to have forgotten what to do with sha1 names. --- diff --git a/git-export.c b/git-export.c index cf40946cf..e817c759b 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 %s %s", against, hex); + sprintf(cmdline, "diff-tree -r -z %s %s | xargs -0 gitdiff-do %s %s", against, hex, against, hex); system(cmdline); } printf("======== end ========\n\n");