Skip to content

test(gitutil): cover staging paths and worktree isolation - #6

Open
taigrr wants to merge 1 commit into
masterfrom
cd/round6-20261111
Open

taigrr wants to merge 1 commit into
masterfrom
cd/round6-20261111

Conversation

@taigrr

@taigrr taigrr commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Cover staging ordinary, leading-dash, and space-containing filenames without staging unrelated edits.
  • Check missing-path errors and linked-worktree index isolation.
  • Test-only change; no dependency or production changes.

Validation

  • go generate ./..., go test -race ./..., go vet ./..., go build ./..., staticcheck ./..., goimports and diff checks pass.
  • Mutation check: removing git add -- makes the leading-dash regression fail; restored source passes.
  • golangci-lint v2.15.0: no new issues. Full lint still reports six preexisting errcheck warnings in cli/edit.go, cli/output.go, engine/github.go and gitutil/gitutil.go. Default installed linter cannot load Go 1.27.3 packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant