pdiff
Pretty side-by-side diff.
Example
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
Release files for pdiff 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pdiff-1.0.5.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pdiff-1.0.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 12.1 kB
Release files / pdiff-1.0.5.tar.gz
| Download URL | pdiff-1.0.5.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec59b579be3d3796aa2766382a9200be6f863dae74af27b4b5795a24b2f1d2d4
|
|
BLAKE2b-256 checksum How to use checksums |
d0383bc56a9d96ec64a84ad44f0e609647e357d0ede2e68abf76fe79794d2633
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.5
|
Release files / pdiff-1.0.5-py2.py3-none-any.whl
| Download URL | pdiff-1.0.5-py2.py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a8ef3a8fa54e7a830c839bd1b98d965f901575a133f845234b2d515a13cefce8
|
|
BLAKE2b-256 checksum How to use checksums |
fd20c7f6a32e097824d2320add601d38146b61ac2605e13042390798a04ae85d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.5
|