]> source.dussan.org Git - jgit.git/commit
RefTreeDatabase: Expose bootstrap refs in getAdditionalRefs 15/64415/2
authorShawn Pearce <spearce@spearce.org>
Fri, 15 Jan 2016 00:11:15 +0000 (16:11 -0800)
committerShawn Pearce <spearce@spearce.org>
Fri, 15 Jan 2016 19:07:19 +0000 (11:07 -0800)
commita290b822ab4f0ec9c1e5121235564fadf594a74e
treed1976ca65a95ff5eb536c35074e7405a2aad559b
parentf52581c6a50d841e1939dbd69d174effa63c8c57
RefTreeDatabase: Expose bootstrap refs in getAdditionalRefs

By showing the bootstrap layer in getAdditionalRefs() garbage
collector code can be more RefDatabase agnostic and not care about
the special case of RefTree and RefTreeNames for the purposes of
building up the roots to GC. Instead they can combine getRefs(ALL)
and getAdditionalRefs() and have a clean set of roots.

Change-Id: I665cd2456e9316640215b6a08bc728d1356f36d8
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/reftree/RefTreeDatabaseTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsGarbageCollector.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftree/RefTreeDatabase.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftree/RefTreeNames.java