Skip to content

Commit ce9be4e

Browse files
Junio C HamanoLinus Torvalds
authored andcommitted
[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>
1 parent d15aa43 commit ce9be4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-export.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void show_commit(struct commit *commit)
1818
char *against = sha1_to_hex(commit->parents->item->object.sha1);
1919
printf("\n\n======== diff against %s ========\n", against);
2020
fflush(NULL);
21-
sprintf(cmdline, "git diff -r %s:%s", against, hex);
21+
sprintf(cmdline, "diff-tree -p -r %s %s", against, hex);
2222
system(cmdline);
2323
}
2424
printf("======== end ========\n\n");

0 commit comments

Comments
 (0)