Pretty side-by-side diff
Project description
pdiff
Pretty side-by-side diff.
Example
Installation
pip install pdiff
Or:
brew install nkouevda/nkouevda/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.8.tar.gz
(5.2 kB
view details)
Built Distribution
pdiff-1.0.8-py3-none-any.whl
(7.1 kB
view details)
File details
Details for the file pdiff-1.0.8.tar.gz
.
File metadata
- Download URL: pdiff-1.0.8.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 857a4757a5365584d5ac720777e7ff5976af126179de83b534ca871e001e8f2d |
|
MD5 | 05a5d72d4d59f6b157b1d0a91c1f85ca |
|
BLAKE2b-256 | a3875c1eccbd3a9e42089c15828a7df32442f00e5d96c7c134cb38043d3500c9 |
Provenance
File details
Details for the file pdiff-1.0.8-py3-none-any.whl
.
File metadata
- Download URL: pdiff-1.0.8-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ce1a21108751ca22160612fc523868d84f56138323a01ab2953b7f59869430f |
|
MD5 | 991f9eae43bb29a7e028f5edd74538a6 |
|
BLAKE2b-256 | 3be62fe361d77cda140930c55b6f0e5f9d6c8602099a1e392170d811fb456df1 |