Git Compare
@charmed_life/git-comparev2026.08.04.1
01README
Structured git comparison — produces per-file diffs between refs and auto-discovers structural patterns to flag deviations in new code. Two methods: diff (structured breakdown) and check (pattern-based review with ready-to-post markdown comments).
02Models
@charmed_life/git-comparev2026.08.04.1git_compare.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| repoPath | string | Path to the git repository (absolute or relative). Defaults to cwd. |
fn diff(base?: string, head: string, pathFilter?: array)
Compare two git refs and produce a structured per-file diff.
| Argument | Type | Description |
|---|---|---|
| base? | string | Base ref to diff from (e.g. main, master, a tag, SHA). |
| head | string | Head ref to diff to (e.g. feature branch name, SHA). Defaults to HEAD. |
| pathFilter? | array | Limit diff to specific file paths or patterns. |
fn check(base?: string, head: string, pathFilter?: array, threshold: number, context?: string)
Auto-discover structural patterns from the base branch and check
| Argument | Type | Description |
|---|---|---|
| base? | string | Base ref (auto-detects default branch if omitted). |
| head | string | Head ref to check (default: HEAD). |
| pathFilter? | array | Limit check to specific file paths. |
| threshold | number | Pattern confidence threshold (0.0-1.0). Default: 0.8. |
| context? | string | Additional context appended to the comment (e.g. upstream chart info, |
03Stats
B
85 / 100
Downloads
0
Archive size
14.8 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository0/2missing
04Platforms
05Labels