]> source.dussan.org Git - jgit.git/commit
log, diff: Add rename detection support 50/1050/1
authorShawn O. Pearce <spearce@spearce.org>
Sat, 3 Jul 2010 22:49:07 +0000 (15:49 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 3 Jul 2010 23:32:03 +0000 (16:32 -0700)
commit04a9d23b9ad1a49b81d6ffb0e5cf7637ba2c6d27
tree9066e85b55d10d4b52aada1063b5fdd5069c24f2
parent978535b09080edcc01302e80b37b9e1263c21db3
log, diff: Add rename detection support

Implement rename detection in the command line diff and log commands.
Also support --name-status, -p and -U flags, as these can be quite
useful to view more detail.

All of the Git patch file formatting code is now moved over to the
DiffFormatter class.  This permits us to reuse it in any context,
including inside of IDEs.

Change-Id: I687ccba34e18105a07e0a439d2181c323209d96c
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/CLIText.properties
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.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java
org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java