A small Bash function that prints only the meaningful parts of your Git diff, skipping asset/vendor directories and binary-ish files. Output is grouped by file with a clear header, making it ideal for quickly reviewing changes or pasting compact, high-signal code context into LLM prompts.
- Less noise, more signal. Excludes
node_modules/
,.yarn
,.astro
, and common binary/extensions by default. - LLM-friendly. Keeps diffs tight to save tokens and reduce hallucinations; per-file headers help models understand boundaries.
- Convenient. One call prints all filtered diffs, or you can narrow to a path.