summaryrefslogtreecommitdiff
path: root/clone.go
diff options
context:
space:
mode:
Diffstat (limited to 'clone.go')
-rw-r--r--clone.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/clone.go b/clone.go
index f3d05cf..58c0b90 100644
--- a/clone.go
+++ b/clone.go
@@ -10,6 +10,38 @@ import (
"go.wit.com/log"
)
+/*
+# to support distributed 'git bug'
+
+# create a new user:
+git bug user new -e "[email protected]" -n "Jeff Carr"
+
+git pull origin +refs/bugs/\*:refs/bugs/\*
+git pull origin +refs/identities/\*:refs/identities/\*
+
+git show-ref | grep refs/bugs/
+
+git log refs/bugs/<some-id>
+
+git config --add remote.origin.fetch '+refs/bugs/*:refs/bugs/*'
+git config --add remote.origin.fetch '+refs/identities/*:refs/identities/*'
+
+git config --get-all remote.origin.fetch
+
+[remote "origin"]
+ url = ...
+ fetch = +refs/heads/*:refs/remotes/origin/*
+ fetch = +refs/bugs/*:refs/bugs/*
+ fetch = +refs/identities/*:refs/identities/*
+
+# remove the caches
+rm -rf .git/git-bug
+
+# rebuild the cache with any command
+git bug user
+
+*/
+
func clone(gopath string) (*gitpb.Repo, error) {
// if the user defined a repo, attempt to download it now
if gopath == "" {