Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce2010-09-01 19:30:11 +0000
committerShawn O. Pearce2010-09-02 18:38:39 +0000
commit59a262d5d27136fa87795feffc7ca029877a2bca (patch)
tree2679925a1ec91c16f2e24d0fd88305c2083d38f6 /org.eclipse.jgit.pgm/resources
parent6f00a3e651e91592e2eb4f239b243a0aa2fe4610 (diff)
downloadjgit-59a262d5d27136fa87795feffc7ca029877a2bca.tar.gz
jgit-59a262d5d27136fa87795feffc7ca029877a2bca.tar.xz
jgit-59a262d5d27136fa87795feffc7ca029877a2bca.zip
Support creating the working directory difference
If the iterators passed into a diff formatter are working tree iterators, we should enable ignoring files that are ignored, as well as actually pull up the current content from the working tree rather than getting it from the repository. Because we abstract away the working directory access logic, we can now actually support rename detection between the working directory and the local repository when using a DiffFormatter. This means its possible for an application to show an unstaged delete-add pair as a rename if the add path is not ignored. (Because the ignored file wouldn't show up in our difference output.) Even more interesting is we can now do rename detection between any two working trees, if both input iterators are WorkingTreeIterators. Unfortunately we don't (yet) optimize for comparing the working tree with the index involved so we can take advantage of cached stat data to rule out non-dirty paths. Change-Id: I4c0598afe48d8f99257266bf447a0ecd23ca7f5e Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.pgm/resources')
0 files changed, 0 insertions, 0 deletions

Back to the top