Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.09 KB

File metadata and controls

52 lines (37 loc) · 1.09 KB

CLAUDE.md

Project

Go module loov.dev/gitg using Go 1.24.

Commands

make build   # build all packages
make test    # run all tests
make vet     # go vet
make fmt     # format with gofumpt (not gofmt)
make lint    # staticcheck
make check   # fmt + vet + lint + test (run before committing)

For targeting specific packages or tests directly:

go test ./pkg/...            # run tests for a specific subtree
go test -run TestName ./pkg  # run a single test

Always run make check before committing.

Commit Messages

Use Go-style commit messages:

<scope>: <what was changed>
  • <scope> is the primary package or area affected (e.g. git, cmd/gitg, diff).
  • <what was changed> starts lowercase, is imperative mood, and concise.
  • No trailing period on the subject line.

Examples:

git: add support for shallow clones
cmd/gitg: fix flag parsing for --depth
diff: improve performance of line matching

For project-wide or non-package changes use all: or omit the scope:

all: update Go version to 1.24
go.mod: add dependency on golang.org/x/tools