github.com/1800alex/go-git-cmd-wrapper@v1.1.0/rebase/rebase_custom.go (about) 1 package rebase 2 3 import ( 4 "github.com/ldez/go-git-cmd-wrapper/types" 5 ) 6 7 // Upstream Upstream branch to compare against. May be any valid commit, not just an existing branch name. 8 // Defaults to the configured upstream for the current branch. 9 func Upstream(name string) func(*types.Cmd) { 10 return func(g *types.Cmd) { 11 g.AddOptions(name) 12 } 13 } 14 15 // Branch Working branch; defaults to HEAD. 16 func Branch(name string) func(*types.Cmd) { 17 return func(g *types.Cmd) { 18 g.AddOptions(name) 19 } 20 }