Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] Use diff-tree -p -r instead of "git diff" in git-export.
author
Junio C Hamano
<junkio@cox.net>
Wed, 27 Apr 2005 22:36:01 +0000
(15:36 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Wed, 27 Apr 2005 22:36:01 +0000
(15:36 -0700)
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>
git-export.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
d15aa43
)
diff --git
a/git-export.c
b/git-export.c
index 6b5db93dbecf6251b69f873cd65b1f7e4e944460..9c867a285b7753859bb2cdcdb2615b386847db70 100644
(file)
--- 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");