MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / hasCommits

Function hasCommits

mob.go:300–303  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

298}
299
300func hasCommits() bool {
301 commitCount := silentgit("rev-list", "--all", "--count")
302 return commitCount != "0"
303}
304
305func currentCliName(argZero string) string {
306 return strings.TrimSuffix(filepath.Base(argZero), ".exe")

Callers 3

TestHasCommitsFunction · 0.85
TestHasCommits_NoCommitsFunction · 0.85
runFunction · 0.85

Calls 1

silentgitFunction · 0.85

Tested by 2

TestHasCommitsFunction · 0.68
TestHasCommits_NoCommitsFunction · 0.68