Skip to main content

Pretty side-by-side diff

Project description

# pdiff

Pretty side-by-side diff.

Inspired by [`cdiff`]( and

## 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
-v, --version show program's version number and exit
--expand-tabs <n> expand tabs to <n> spaces; default: 8
--signs, --no-signs show sign columns; default: True
-U <n>, --unified <n>
show <n> lines of context; default: 3
--width <n> fit output to <n> columns; default: autodetect

### Git

Configure a `pdiff` `difftool`, and add some aliases to your liking, e.g.:

cmd = "pdiff -- \"$LOCAL\" \"$REMOTE\" | less -R"

dfp = difftool --tool=pdiff
dfpc = difftool --tool=pdiff --cached

## License

Licensed under the [MIT License](

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pdiff, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pdiff-1.0.2-py2.py3-none-any.whl (6.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pdiff-1.0.2.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page