]> source.dussan.org Git - jgit.git/commit
PackWriter: Cleanup findObjectToPack method 85/2385/2
authorShawn O. Pearce <spearce@spearce.org>
Sun, 30 Jan 2011 23:10:51 +0000 (15:10 -0800)
committerChris Aniszczyk <caniszczyk@gmail.com>
Tue, 1 Feb 2011 15:03:24 +0000 (09:03 -0600)
commit2fbcba41e365752681f635c706d577e605d3336a
treecc8e9b9acedcc7cf95f2e38e54ddbeed50a31cd3
parent8f63dface2e08b228cdeb3bef3f93458eab9ce14
PackWriter: Cleanup findObjectToPack method

Some of this code predates making ObjectId.equals() final
and fixing RevObject.equals() to match ObjectId.equals().
It was therefore more complex than it needs to be, because
it tried to work around RevObject's broken equals() rules
by converting to ObjectId in a different collection.

Also combine setUpWalker() and findObjectsToPack() methods,
these can be one method and the code is actually cleaner.

Change-Id: I0f4cf9997cd66d8b6e7f80873979ef1439e507fe
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java