BATDIFF(1)

πŸ“¦ version 2024.08.24, in arch rolling

πŸ’… 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 β€” if delta is installed, use delta by 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 using delta. 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-color option 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