From 596c3f668b184e41b147aab6260c23189e521c09 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Fri, 3 Sep 2010 23:33:28 -0700 Subject: log: Fix commit headers and -p flag We weren't flushing the commit message before the diff output, which meant the headers and message showed randomly interleaved with the diff rather than immediately before. Change-Id: I6cefab8d40e9d40c937e9deb12911188fec41b26 Signed-off-by: Shawn O. Pearce --- org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java index 8eb2e54dc5..92cb70d4c4 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java @@ -234,10 +234,10 @@ class Log extends RevWalkTextBuiltin { if (showNameAndStatusOnly) Diff.nameStatus(out, diffFmt.scan(a, b)); else { + out.flush(); diffFmt.format(a, b); diffFmt.flush(); } out.println(); - out.flush(); } } -- cgit v1.2.3