Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-svn: starting a 1.1.0-pre development version
[gitweb.git]
/
diff-tree.c
diff --git
a/diff-tree.c
b/diff-tree.c
index 7207867a74d0869c6a6b839c040321c843ee9c2f..69bb74b3100d598c938fa01f1111deb85abcfac0 100644
(file)
--- a/
diff-tree.c
+++ b/
diff-tree.c
@@
-138,7
+138,10
@@
int main(int argc, const char **argv)
opt->diffopt.setup |= (DIFF_SETUP_USE_SIZE_CACHE |
DIFF_SETUP_USE_CACHE);
while (fgets(line, sizeof(line), stdin))
- diff_tree_stdin(line);
+ if (line[0] == '\n')
+ fflush(stdout);
+ else
+ diff_tree_stdin(line);
return 0;
}