(key string)
| 93 | } |
| 94 | |
| 95 | func (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 | |
| 103 | func (r *Repository) IsInitialCommit() bool { |
| 104 | _, err := r.RunCommand("rev-parse", "HEAD") |
no test coverage detected