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

Method hasLocalCommits

mob.go:214–218  ·  view source on GitHub ↗
(configuration config.Configuration)

Source from the content-addressed store, hash-verified

212}
213
214func (branch Branch) hasLocalCommits(configuration config.Configuration) bool {
215 local := silentgit("for-each-ref", "--format=%(objectname)", "refs/heads/"+branch.Name)
216 remote := silentgit("for-each-ref", "--format=%(objectname)", "refs/remotes/"+branch.remote(configuration).Name)
217 return local != remote
218}
219
220func (branch Branch) hasUnpushedCommits(configuration config.Configuration) bool {
221 countOutput := silentgit(

Callers 1

nextFunction · 0.80

Calls 2

remoteMethod · 0.95
silentgitFunction · 0.85

Tested by

no test coverage detected