项目作者: nkouevda

项目描述 :
Pretty side-by-side diff
高级语言: Python
项目地址: git://github.com/nkouevda/pdiff.git
创建时间: 2017-08-25T07:38:41Z
项目社区:https://github.com/nkouevda/pdiff

开源协议:MIT License

下载


pdiff

Pretty side-by-side diff.

Inspired by ydiff and
icdiff.

Example

pdiff.png

Installation

  1. pip install pdiff

Or:

  1. brew install nkouevda/nkouevda/pdiff

Usage

  1. usage: pdiff [<options>] [--] <left file> <right file>
  2. Pretty side-by-side diff
  3. optional arguments:
  4. -h, --help show this help message and exit
  5. -b, --background, --no-background
  6. highlight background instead of foreground (default: True)
  7. -l, --line-numbers, --no-line-numbers
  8. show line number columns (default: True)
  9. -t <n>, --expand-tabs <n>
  10. expand tabs to <n> spaces (default: 8)
  11. -s, --signs, --no-signs
  12. show sign columns (default: True)
  13. -U <n>, --unified <n>
  14. show <n> lines of context (default: 3)
  15. -v, --version show program's version number and exit
  16. -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.:

  1. [difftool "pdiff"]
  2. cmd = "pdiff -- \"$LOCAL\" \"$REMOTE\" | less --Raw-control-chars --quit-on-intr"
  3. [alias]
  4. dfp = difftool --tool=pdiff
  5. dfpc = difftool --tool=pdiff --cached

License

MIT License