()
| 1077 | } |
| 1078 | |
| 1079 | func 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 | |
| 1084 | func doBranchesDiverge(ancestor string, successor string) bool { |
| 1085 | _, _, err := runCommandSilent("git", "merge-base", "--is-ancestor", ancestor, successor) |