ask_human nudge to merge main
This commit is contained in:
@@ -177,6 +177,14 @@ func UnmergedChanges(worktree, target string) (Unmerged, error) {
|
||||
return u, nil
|
||||
}
|
||||
|
||||
func Behind(worktree, target string) (int, error) {
|
||||
count, err := run(worktree, "rev-list", "--count", "HEAD.."+target)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
return strconv.Atoi(count)
|
||||
}
|
||||
|
||||
func SquashCommit(repo, worktree, target, message string, env []string, sign func(payload []byte) ([]byte, error)) (string, error) {
|
||||
checkedOut, err := run(repo, "symbolic-ref", "--short", "HEAD")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user