Skip to content

Instantly share code, notes, and snippets.

@tifletcher
Last active December 6, 2022 15:00
Show Gist options
  • Save tifletcher/5492890 to your computer and use it in GitHub Desktop.
Save tifletcher/5492890 to your computer and use it in GitHub Desktop.
Colorized diffs for fossil-scm

Colorized Diffs on the CLI for Fossil

Usage

  f-diff <options - passed unmodified to 'fossil diff'>

Notes

  • 2013-04-30: Now requires Colorize Unified Diff on your path somewhere. For a standalone version see this gist's first revision.
  • 2013-04-30: Added dos2unix in the pipeline to filter out those annoying '^M's.
#!/bin/sh
fossil diff $@ \
| dos2unix \
| colorize-unified-diff \
| less -SR
@zagaberoo
Copy link

Thank you for this! Now to see if I can wrangle it to work implicitly with fossil via the diff-command setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment