1 unstable release

0.1.0 Jun 26, 2024

#10 in #second

GPL-3.0-or-later

27KB
474 lines

Binary DIFF

BDiff generates diffs just like the standard GNU diff tool, but instead of operating per-line, it does so on a per-byte basis, outputting diffs as hex dumps (formatted similarly to what xxd outputs).

Usage

bdiff [OPTIONS] MINUS_FILE PLUS_FILE

Positional arguments:

  • MINUS_FILE: First file to be compared
  • PLUS_FILE: Second file to be compared

Options

Argument Description
-h,--help Show help message and exit
-w,--width WIDTH Set the number of bytes to display per line (default 16)
-B,--before BEFORE Full lines to show before a difference (default 3)
-A,--after AFTER Full lines to show after a difference (default 3)
-l,--align-left Align lines with left file (default)
-r,--align-right Align lines with right file
-v,--version Show version and exit

Dependencies

~2.7–4MB
~77K SLoC