diff options
author | Junio C Hamano <junkio@cox.net> | 2005-04-27 15:36:01 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-27 15:36:01 -0700 |
commit | ce9be4e4e8f397413ff5d87cda458c7e466897b1 (patch) | |
tree | bc86bd4d32f883865c632fccc6acc76ce5806a9e | |
parent | d15aa4309cadae5c998c9ce1c45b7a104f3d80f5 (diff) | |
download | git-ce9be4e4e8f397413ff5d87cda458c7e466897b1.tar.gz git-ce9be4e4e8f397413ff5d87cda458c7e466897b1.tar.xz |
[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 <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | git-export.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |