]> source.dussan.org Git - jgit.git/commit
Redo DiffFormatter API to be easier to use 51/1051/1
authorShawn O. Pearce <spearce@spearce.org>
Sat, 3 Jul 2010 23:58:37 +0000 (16:58 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 3 Jul 2010 23:58:37 +0000 (16:58 -0700)
commit5be90be996551302d59a07ea49af5e5b9fed1cb3
tree5b2cce7f092c151e25530f0db28af81e8947edb0
parent04a9d23b9ad1a49b81d6ffb0e5cf7637ba2c6d27
Redo DiffFormatter API to be easier to use

Passing around the OutputStream and the Repository is crazy.  Instead
put the stream in the constructor, since this formatter exists only to
output to the stream, and put the repository as a member variable that
can be optionally set.

Change-Id: I2bad012fee7f40dc1346700ebd19f1e048982878
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Diff.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterReflowTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java