diff options
| author | Claude <noreply@anthropic.com> | 2026-09-02 21:03:17 -0500 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-09-02 21:03:17 -0500 |
| commit | bd25a73ca5e801af4a9087597c15b1958d1c6588 (patch) | |
| tree | b698c211c5b56b6ef3ed9e54388737ee5e705005 /cmd/skiff/main.go | |
| parent | 6040eff2d2b4618f19d4615d246ea6b0704acdf8 (diff) | |
Drop unused --old flag from skiff deploy
Its only caller was the post-receive hook skiff itself generates, so
"hook parity" meant matching a convention we invented and fully control -
there's no external contract keeping it around. deploy.Run never read it.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'cmd/skiff/main.go')
| -rw-r--r-- | cmd/skiff/main.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd/skiff/main.go b/cmd/skiff/main.go index cc48c67..52d57c1 100644 --- a/cmd/skiff/main.go +++ b/cmd/skiff/main.go @@ -59,11 +59,9 @@ func main() { func cmdDeploy(args []string) error { fs := flag.NewFlagSet("deploy", flag.ExitOnError) app := fs.String("app", "", "app name") - oldSHA := fs.String("old", "", "old commit sha (unused, kept for hook parity)") newSHA := fs.String("new", "", "new commit sha to deploy") ref := fs.String("ref", "", "ref being pushed, e.g. refs/heads/main") fs.Parse(args) - _ = oldSHA if *app == "" || *newSHA == "" { return fmt.Errorf("--app and --new are required") |
