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>] [--] <left file> <right file>
Pretty side-by-side diff
options:
-h, --help show this help message and exit
-b, --background, --no-background
highlight background instead of foreground (default: True)
-l, --line-numbers, --no-line-numbers
show line number columns (default: True)
-t, --expand-tabs <n>
expand tabs to <n> spaces (default: 8)
-s, --signs, --no-signs
show sign columns (default: True)
-U, --unified <n> show <n> lines of context (default: 3)
-v, --version show program's version number and exit
-w, --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 --Raw-control-chars --quit-on-intr"
[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.1.5.tar.gz
(6.4 kB
view details)
Built Distribution
pdiff-1.1.5-py3-none-any.whl
(7.6 kB
view details)
File details
Details for the file pdiff-1.1.5.tar.gz
.
File metadata
- Download URL: pdiff-1.1.5.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
65c3a1ab67060a337f03c0cacbbcd24bfbf1bf17961ca1b3875f47662745a7d5
|
|
MD5 |
1bfe9bcf9b4661dfc3e67805b6c60245
|
|
BLAKE2b-256 |
ea6d386386e23918a79f144c6c58c9d01fc89dec008bcc053def4e8fc98d1d98
|
File details
Details for the file pdiff-1.1.5-py3-none-any.whl
.
File metadata
- Download URL: pdiff-1.1.5-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9dc2327b96548c6fefb94d5bc4e689eff5460f36debabb829bb8f68ead98bcf5
|
|
MD5 |
45b35899de5aa0945dd349247e170d88
|
|
BLAKE2b-256 |
6e71c44139446f1d58dab87c9d588229b6973e6abab987d85902ab8b5522c815
|