GeezerVison is showing github.com — docs: note untracked files in review · ildella/opencode@c29d44f
File tree
Expand file treeCollapse file tree
Open diff view settings
packages/opencode/src/command/template
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/opencode/src/command/template/review.txt +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -13,6 +13,7 @@ Based on the input provided, determine which type of review to perform: |
13 | 13 | 1. **No arguments (default)**: Review all uncommitted changes |
14 | 14 | - Run: `git diff` for unstaged changes |
15 | 15 | - Run: `git diff --cached` for staged changes |
| 16 | + - Run: `git status --short` to identify untracked (net new) files |
16 | 17 |
|
17 | 18 | 2. **Commit hash** (40-char SHA or short hash): Review that specific commit |
18 | 19 | - Run: `git show $ARGUMENTS` |
@@ -33,6 +34,7 @@ Use best judgement when processing input. |
33 | 34 | **Diffs alone are not enough.** After getting the diff, read the entire file(s) being modified to understand the full context. Code that looks wrong in isolation may be correct given surrounding logic—and vice versa. |
34 | 35 |
|
35 | 36 | - Use the diff to identify which files changed |
| 37 | +- Use `git status --short` to identify untracked files, then read their full contents |
36 | 38 | - Read the full file to understand existing patterns, control flow, and error handling |
37 | 39 | - Check for existing style guide or conventions files (CONVENTIONS.md, AGENTS.md, .editorconfig, etc.) |
38 | 40 |
|
|