summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-05-23 03:27:53 -0500
committerJeff Carr <[email protected]>2025-05-23 03:27:53 -0500
commit4ab621a7f265881a62ed25bc591672b1facac77e (patch)
tree66b520cb208c20037fe7d43a6d2d0bb05c87b9f5
parent0c5183edf98c0e0c20091c329445363ee6113358 (diff)
notes about 'git bug'v0.7.64
-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 == "" {