Skip to main content

Git Compare

@charmed_life/git-comparev2026.08.04.1· 1mo agoMODELS
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).

02Models1
@charmed_life/git-comparev2026.08.04.1git_compare.ts

Global Arguments

ArgumentTypeDescription
repoPathstringPath 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.
ArgumentTypeDescription
base?stringBase ref to diff from (e.g. main, master, a tag, SHA).
headstringHead ref to diff to (e.g. feature branch name, SHA). Defaults to HEAD.
pathFilter?arrayLimit 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
ArgumentTypeDescription
base?stringBase ref (auto-detects default branch if omitted).
headstringHead ref to check (default: HEAD).
pathFilter?arrayLimit check to specific file paths.
thresholdnumberPattern confidence threshold (0.0-1.0). Default: 0.8.
context?stringAdditional 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