summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-07-08 17:11:38 -0700
committerShawn O. Pearce <spearce@spearce.org>2010-07-09 10:37:47 -0700
commitc20daa73146a3c385f4fed237708c4a7d28d8745 (patch)
tree9fffee781498ff8b7ab31a628403261176a6ef29 /org.eclipse.jgit.junit
parentb584cb8754796bb96526b37b26b517741b9c9d1c (diff)
downloadjgit-c20daa73146a3c385f4fed237708c4a7d28d8745.tar.gz
jgit-c20daa73146a3c385f4fed237708c4a7d28d8745.zip
Add path hash code to ObjectWalk
PackWriter wants to categorize objects that are similar in path name, so blobs that are probably from the same file (or same sort of file) can be delta compressed against each other. Avoid converting into a string by performing the hashing directly against the path buffer in the tree iterator. We only hash the last 16 bytes of the path, and we try avoid any spaces, as we want the suffix of a file such as ".java" to be more important than the directory it is in, like "src". Change-Id: I31770ee711526306769a6f534afb19f937e0ba85 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.junit')
0 files changed, 0 insertions, 0 deletions