fix(cli): wire expected-old restore through the dependency seam

The P1 fix added expectedOld to resetBranchRef but left the appDeps field and the workflows.go import behind, so the CLI package did not compile. Update the field type to the 5-argument signature and restore the filepath import used by worktree release resolution.

Co-Authored-By: cairn-code <[email protected]>
This commit is contained in:
euxaristiaandcairn-code committed 2026-08-11 17:14:24 -04:00
1 parent 4e9331479f
commit 93e3448ee5
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -104,7 +104,7 @@ type appDeps struct {
currentGitBranch func(context.Context, string) string
currentBranchTip func(context.Context, string) string
deleteBranch func(context.Context, string, string, string) error
resetBranchRef func(context.Context, string, string, string) error
resetBranchRef func(context.Context, string, string, string, string) error
runTUI func(context.Context, tui.Options) int
runEditor func(string) error
checkUpdate func(context.Context, update.Options) (update.Result, error)
+1
View File
@@ -5,6 +5,7 @@ import (
"fmt"
"io"
"path"
"path/filepath"
"regexp"
"strconv"
"strings"