Browse Source

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 <spearce@spearce.org>
tags/v0.9.1
Shawn O. Pearce 13 years ago
parent
commit
596c3f668b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java

+ 1
- 1
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java View File

@@ -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();
}
}

Loading…
Cancel
Save