From 026d7c48163a9d246820c84693673a13f42f9145 Mon Sep 17 00:00:00 2001 From: Jeremy Stribling Date: Tue, 31 Oct 2017 15:15:58 -0700 Subject: filesystem: implement PackRefs() Currently this implementation is only valid for kbfsgit, since it assumes some things about the filesystem not being updated during the packing, and about conflict resolution rules. In the future, it would be nice to replace this with a more general one, and move this kbfsgit-optimized implementation into kbfsgit. Issue: KBFS-2517 --- plumbing/storer/reference.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plumbing') diff --git a/plumbing/storer/reference.go b/plumbing/storer/reference.go index ae80a39..5e85a3b 100644 --- a/plumbing/storer/reference.go +++ b/plumbing/storer/reference.go @@ -24,6 +24,8 @@ type ReferenceStorer interface { Reference(plumbing.ReferenceName) (*plumbing.Reference, error) IterReferences() (ReferenceIter, error) RemoveReference(plumbing.ReferenceName) error + CountLooseRefs() (int, error) + PackRefs() error } // ReferenceIter is a generic closable interface for iterating over references. -- cgit