1
0
mirror of https://github.com/git/git.git synced 2024-11-19 01:54:03 +01:00

[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>
This commit is contained in:
Junio C Hamano 2005-04-27 15:36:01 -07:00 committed by Linus Torvalds
parent d15aa4309c
commit ce9be4e4e8

@ -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");