Discard Whitespace Hunks

Discard whitespace-only diff hunks from the git working tree while preserving real content changes. Use this skill whenever the user asks to clean up whitespace noise in a git diff, discard formatting-only changes, remove whitespace/indentation/line-break-only hunks, strip cosmetic diff noise, or keep only meaningful changes in unstaged modifications. Also use it when the user says things like "my diff is full of whitespace junk" or "I only want the real changes" or "drop the reformatting hunks".

akaihola Updated

File contents

akaihola/skills-akaihola/tree/main/discard-whitespace-hunks commit 1bed8fa3a9

Frequently asked questions

npx skillmds@latest add akaihola/discard-whitespace-hunks