MCPcopy Create free account
hub / github.com/cwarden/git-add--interactive / GetColorBool

Method GetColorBool

internal/git/repository.go:95–101  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

93}
94
95func (r *Repository) GetColorBool(key string) bool {
96 output, err := r.RunCommand("config", "--get-colorbool", key, "true")
97 if err != nil {
98 return false
99 }
100 return strings.TrimSpace(string(output)) == "true"
101}
102
103func (r *Repository) IsInitialCommit() bool {
104 _, err := r.RunCommand("rev-parse", "HEAD")

Callers 2

ParseDiffMethod · 0.95
initColorsMethod · 0.80

Calls 1

RunCommandMethod · 0.95

Tested by

no test coverage detected