BATDIFF(1)
π
bestie, meet batdiff(1) π
okay so this is the General Commands Manual page for batdiff, and sheβs lowkey iconic. no cap, sheβs here to make diffs make sense. π¦
π NAME π
batdiff β diff a file against the current git index, or display the diff between two files. thatβs the whole assignment, bestie. π
β¨ DESCRIPTION β¨
this script supports using delta as an alternative highlighter for diffs. slay. literally built for when you want your diffs to look cute and be readable. π«Ά
πΈ USAGE πΈ
batdiff [OPTIONS] FILE
batdiff [OPTIONS] FILE OTHER_FILE
batdiff --staged
three ways to run her, pick your main character moment. π
π¦ ENVIRONMENT π¦
the env table is tiny but mighty:
BATDIFF_USE_DELTA=trueβ ifdeltais installed, usedeltaby default. thatβs it, thatβs the whole environment section, periodt. π
π OPTIONS π
the option menu is giving short, long, and what it does β hereβs the whole list, no skipping:
-C,--context=[LINES]β the number of lines to show before and after the differing lines. context queen. π--deltaβ display diffs usingdelta. fancy highlighter energy. β¨--colorβ force color output. we love a colorful moment. π--no-colorβ force disable color output. okay, monochrome bestie. π€--paging=["never"/"always"]β enable/disable paging. you choose the vibe. π--pager=[PAGER]β specify the pager to use. pick your little scroll guy. π«Ά--terminal-width=[COLS]β generate output for the specified terminal width. width-aware realness. π--stagedβ show staged changes. git girlies rise. π
π₯ CAVEATS π₯
big caveat energy, bestie β read these before you act brand new:
when using bat as the printer:
- syntax highlighting in diffs between two files is not supported. not supported, fr fr. π
- syntax highlighting in a single-file diff requires
bat >= 0.15. version check, no cap. β
when using delta as the printer:
- the
--no-coloroption does not remove all color output. the color stays a little bit, bestie. π
π«Ά sign-off: thatβs the BATDIFF(1) General Commands Manual page β no source/version/date line here, just this cute little footer vibe. stay diffy π
π¦ where this page comes from
- arch rolling: bat-extras 2024.08.24-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms