]> source.dussan.org Git - jgit.git/commit
FileRepository: Support extensions.refsBackendType = RefTree 70/62970/15
authorShawn Pearce <spearce@spearce.org>
Sat, 9 Jan 2016 20:51:14 +0000 (12:51 -0800)
committerShawn Pearce <spearce@spearce.org>
Mon, 11 Jan 2016 23:27:07 +0000 (15:27 -0800)
commit088c2fc6e33737a406e69a99d75f06d3fbb05e30
tree0c49965cf40a34752ff37e42e5f7b3e41d0758b4
parent48e245fc606f7033b9de017d3dcae7b8ea7cc91a
FileRepository: Support extensions.refsBackendType = RefTree

This experimental code can be enabled in $GIT_DIR/config:

  [core]
    repositoryformatversion = 1

  [extensions]
    refsBackendType = RefTree

When these are set the repository will read references from the
RefTree rooted by the $GIT_DIR/refs/txn/committed reference.

Update debug-rebuild-ref-tree to rebuild refs/txn/committed only from
the bootstrap layer.  This avoids misuse by rebuilding using packed-refs
and $GIT_DIR/refs tree.

Change-Id: Icf600e4a36b2f7867822a7ab1f1617d73c710a4b
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/RebuildRefTree.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/FileRepositoryBuilderTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileRepository.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftree/RefTreeDatabase.java