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

Function gitCurrentBranch

mob.go:1079–1082  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1077}
1078
1079func gitCurrentBranch() Branch {
1080 // upgrade to branch --show-current when git v2.21 is more widely spread
1081 return newBranch(silentgit("rev-parse", "--abbrev-ref", "HEAD"))
1082}
1083
1084func doBranchesDiverge(ancestor string, successor string) bool {
1085 _, _, err := runCommandSilent("git", "merge-base", "--is-ancestor", ancestor, successor)

Callers 15

commitsOnCurrentBranchFunction · 0.85
commitsOnRemoteBranchFunction · 0.85
statusFunction · 0.85
getMobTimerRoomFunction · 0.85
squashWipFunction · 0.85
assertOnBranchFunction · 0.85
cleanFunction · 0.85
deleteRemoteWipBranchFunction · 0.85
startFunction · 0.85
startJoinMobSessionFunction · 0.85
startNewMobSessionFunction · 0.85
nextFunction · 0.85

Calls 2

newBranchFunction · 0.85
silentgitFunction · 0.85

Tested by 3

commitsOnCurrentBranchFunction · 0.68
commitsOnRemoteBranchFunction · 0.68
assertOnBranchFunction · 0.68