Pretty side-by-side diff
Project description
pdiff
Pretty side-by-side diff.
Examples
Default:
With --background and --line-numbers:
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
-b, --background, --no-background
highlight background instead of foreground (default: False)
-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 --Raw-control-chars"
[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.1.tar.gz
(6.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pdiff-1.1.1-py3-none-any.whl
(7.5 kB
view details)
File details
Details for the file pdiff-1.1.1.tar.gz.
File metadata
- Download URL: pdiff-1.1.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/58.5.3 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c6a8664965c7a6eca5d234de47fa255ed4e2051083cf66e2f0631d33e346b0d
|
|
| MD5 |
d584d3c1797d46b5b861980766e292c9
|
|
| BLAKE2b-256 |
7a8beb987a4fc0b0b3d9584fd6b1a901a0313af962f72d1ee8c1a43e3139ed04
|
File details
Details for the file pdiff-1.1.1-py3-none-any.whl.
File metadata
- Download URL: pdiff-1.1.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/58.5.3 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94cd6a42cd33c3961d6a60bf484616450bf7a4254f7702b3a33f0135bbb42b2e
|
|
| MD5 |
26a40f7c1672743727c5ea112cb5ee2a
|
|
| BLAKE2b-256 |
3c51c9d729491cd0838cdc89610d1d43f5dae85c079a80e39e23380c73953321
|