Pretty side-by-side diff
Project description
pdiff
Pretty side-by-side diff.
Installation
pip install pdiff
Usage
usage: pdiff [<options>] [--] <old file> <new file>
Pretty side-by-side diff
optional arguments:
-h, --help show this help message and exit
-L, --line-numbers, --no-line-numbers
show line number columns; default: False
-t <n>, --expand-tabs <n>
expand tabs to <n> spaces; default: 8
-S, --signs, --no-signs
show sign columns; default: True
-U <n>, --unified <n>
show <n> lines of context; default: 3
-v, --version show program's version number and exit
-W <n>, --width <n> fit output to <n> columns; default: autodetect
Git
Configure a pdiff
difftool
, and add some aliases to your liking, e.g.:
[difftool.pdiff]
cmd = "pdiff -- \"$LOCAL\" \"$REMOTE\" | less -R"
[alias]
dfp = difftool --tool=pdiff
dfpc = difftool --tool=pdiff --cached
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pdiff-1.0.4.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for pdiff-1.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0f3d71de4d5c34578f93e66276f3f0b5028675111d2d208ddcca7402c29bd20 |
|
MD5 | 959b685d9bcb813494025b55cbb0e5c8 |
|
BLAKE2b-256 | 7e53dafc98ea8594ac212fa550ee47361fd2ae19264f1b80c6ba216c160f6562 |