split refs into push/pull

Signed-off-by: jolheiser <git@jolheiser.com>
main
jolheiser 2025-07-24 11:57:54 -05:00
parent 2e9cc88688
commit 960c423446
No known key found for this signature in database
1 changed files with 11 additions and 5 deletions

View File

@ -1,9 +1,5 @@
export def "git bug init" [] { export def "git bug init" [] {
^git config --add remote.origin.fetch "refs/bugs/*:refs/bugs/*" git bug pull
^git config --add remote.origin.fetch "refs/identities/*:refs/identities/*"
^git config --add remote.origin.push "refs/bugs/*:refs/bugs/*"
^git config --add remote.origin.push "refs/identitites/*:refs/identities/*"
^git fetch
let id = ^git-bug user -f json | from json | where name == 'jolheiser' | get -i human_id.0 let id = ^git-bug user -f json | from json | where name == 'jolheiser' | get -i human_id.0
if ($id | is-not-empty) { if ($id | is-not-empty) {
^git-bug user adopt $id ^git-bug user adopt $id
@ -12,6 +8,16 @@ export def "git bug init" [] {
} }
} }
export def "git bug pull" [] {
^git fetch origin refs/bugs/*:refs/bugs/*
^git fetch origin refs/identities/*:refs/identities/*
}
export def "git bug push" [] {
^git push origin refs/bugs/*:refs/bugs/*
^git push origin refs/identities/*:refs/identities/*
}
def "bug-id" [] { def "bug-id" [] {
^git-bug bug --format json | from json | each {|bug| { value: $bug.human_id, description: $bug.title }} ^git-bug bug --format json | from json | each {|bug| { value: $bug.human_id, description: $bug.title }}
} }