github.com/1800alex/go-git-cmd-wrapper@v1.1.0/reset/reset_custom.go (about) 1 package reset 2 3 import "github.com/ldez/go-git-cmd-wrapper/types" 4 5 // HyphenHyphen add `--` 6 func HyphenHyphen(g *types.Cmd) { 7 g.AddOptions("--") 8 } 9 10 // Path <paths>... 11 func Path(values ...string) func(*types.Cmd) { 12 return func(g *types.Cmd) { 13 for _, value := range values { 14 g.AddOptions(value) 15 } 16 } 17 } 18 19 // Commit [<commit>] 20 func Commit(hash string) func(*types.Cmd) { 21 return func(g *types.Cmd) { 22 g.AddOptions(hash) 23 } 24 } 25 26 // TreeIsh [<tree-ish>] 27 func TreeIsh(hash string) func(*types.Cmd) { 28 return func(g *types.Cmd) { 29 g.AddOptions(hash) 30 } 31 }