aboutsummaryrefslogtreecommitdiff
path: root/git-export.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-20 18:48:27 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-20 18:48:27 -0700
commit32347c375250fd470973a5d76185cac718955fd5 (patch)
tree0c78f18ba12e18b7db1fe851b769aa881ed849f0 /git-export.c
parentb12ec373b8ecf7de6ea37db392fde57f13c5b51c (diff)
downloadgit-32347c375250fd470973a5d76185cac718955fd5.tar.gz
git-32347c375250fd470973a5d76185cac718955fd5.tar.xz
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.
Diffstat (limited to 'git-export.c')
-rw-r--r--git-export.c2
1 files changed, 1 insertions, 1 deletions
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");