diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-18 22:08:41 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-18 22:08:41 -0700 |
commit | 2c57ebc22329e11fc4843f62fe464a4e0c212176 (patch) | |
tree | d9618fa4497ae60fe5503bed0d673704eb2e1b48 /diff-tree.c | |
parent | Merge branch 'lt/dirwalk' into next (diff) | |
parent | Documentation/Makefile: create tarballs for the man pages and html files (diff) | |
download | tgif-2c57ebc22329e11fc4843f62fe464a4e0c212176.tar.xz |
Merge branch 'ts/doctar' into next
* ts/doctar:
Documentation/Makefile: create tarballs for the man pages and html files
SubmittingPatches: The download location of External Editor has moved
Make git-check-format-ref a builtin.
Make "git rev-list" be a builtin
builtin-diff: do not say files are renamed when blob and file are given
Provide a way to flush git-diff-tree's output
Diffstat (limited to 'diff-tree.c')
-rw-r--r-- | diff-tree.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/diff-tree.c b/diff-tree.c index 7207867a74..69bb74b310 100644 --- 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; } |