]> source.dussan.org Git - jgit.git/commit
Add a DiffFormatter which calculates a patch-id 86/3486/4
authorStefan Lay <stefan.lay@sap.com>
Tue, 24 May 2011 08:38:59 +0000 (01:38 -0700)
committerChris Aniszczyk <caniszczyk@gmail.com>
Tue, 24 May 2011 23:08:47 +0000 (18:08 -0500)
commit05fa1713da0ecc36829f321d798c2b08bf7936ff
treec6cc6da53cdd0884de1dea212386938b78ce82c4
parent7d380e9c5e1602e0938792869c4fcba88fd0dc2f
Add a DiffFormatter which calculates a patch-id

Adds a class which can be used to calculates a SHA1 of the diff
associated with a patch, similar to git patch-id.

In this version whitespace is not ignored.

Change-Id: I421d15ea905e23df543082786786841cbe3ef10d
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/PatchIdDiffFormatterTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java
org.eclipse.jgit/src/org/eclipse/jgit/diff/PatchIdDiffFormatter.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/util/io/NullOutputStream.java [new file with mode: 0644]