Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/contributing/go-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ of `codecov/patch` failures on first push.

### Step-by-step

1. **Identify changed Go files** (excluding tests and generated code):
1. **Identify changed Go files** (excluding tests and generated code).
**Stage new files first** (`git add`) — `git diff --name-only` only
sees tracked or staged files, so an unstaged new file would be
invisible and the check would silently skip it.

```bash
git diff --name-only main -- '*.go' | grep -v '_test.go'
Expand Down
Loading