From 4ab621a7f265881a62ed25bc591672b1facac77e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 23 May 2025 03:27:53 -0500 Subject: [PATCH] notes about 'git bug' --- clone.go | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) 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 "jcarr@wit.com" -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/ + +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 == "" {