]> source.dussan.org Git - jgit.git/commit
Refactor DfsReader selection of cached packs 29/4629/2
authorShawn O. Pearce <spearce@spearce.org>
Wed, 16 Nov 2011 22:52:31 +0000 (14:52 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 18 Nov 2011 23:55:51 +0000 (15:55 -0800)
commit4b84186b641ddef39399dfff58bc762090da8fdd
tree09adf57e0997fb7890bd8f451c41d152749a0cfc
parentce02c82b824fa04cd6ca00affc9c8036e92c500a
Refactor DfsReader selection of cached packs

Make the code more clear with a simple refactoring of the boolean
logic into a method that describes the condition we are looking
for on each pack file. A cached pack is possible if there exists
a tips collection, and the collection is non-empty.

Change-Id: I4ac42b0622b39d159a0f4f223e291c35c71f672c
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsReader.java