aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/internal/dotgit
diff options
context:
space:
mode:
authorJeremy Stribling <strib@alum.mit.edu>2017-11-01 12:01:36 -0700
committerJeremy Stribling <strib@alum.mit.edu>2017-11-29 10:37:13 -0800
commit3447303ce76caa3a22e9f510fa00e73f5143267e (patch)
tree937dfac33571e8fa2b8c8256ae47fcb86177f98a /storage/filesystem/internal/dotgit
parentae2168c749f04f61926bd40a375ead49e63bbf05 (diff)
downloadgo-git-3447303ce76caa3a22e9f510fa00e73f5143267e.tar.gz
filesystem: todo comment about "all" param
Issue: KBFS-2517
Diffstat (limited to 'storage/filesystem/internal/dotgit')
-rw-r--r--storage/filesystem/internal/dotgit/dotgit.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/storage/filesystem/internal/dotgit/dotgit.go b/storage/filesystem/internal/dotgit/dotgit.go
index 6d56318..330f9d5 100644
--- a/storage/filesystem/internal/dotgit/dotgit.go
+++ b/storage/filesystem/internal/dotgit/dotgit.go
@@ -597,6 +597,10 @@ func (d *DotGit) CountLooseRefs() (int, error) {
// ref update could also lock packed-refs, so only one lock is
// required during ref-packing. But that would worsen performance in
// the common case.
+//
+// TODO: add an "all" boolean like the `git pack-refs --all` flag.
+// When `all` is false, it would only pack refs that have already been
+// packed, plus all tags.
func (d *DotGit) PackRefs() (err error) {
// Lock packed-refs, and create it if it doesn't exist yet.
f, err := d.fs.Open(packedRefsPath)