Skip to main content

Two-column web-based git difftool

Project description

webdiff displays side-by-side two-column diffs in the web browser.

It supports syntax highlighting, eliding & expansion of common lines and multi-file diffs.

It integrates with git.

Install via:

pip install webdiff

Then run via one of these:

git webdiff

git webdiff <arguments>

webdiff <left_dir> <right_dir>

webdiff https://github.com/owner/repo/pull/123

webdiff #123

See https://github.com/danvk/webdiff/ for more information.

Release Notes
- 0.10
* Added perceptual diffs via ImageMagick
* Add a favicon

- 0.9
* Long lines now wrap instead of scrolling horizontally.
* Only 10+ common lines will be elided (no more "Show 2 more lines").
* Show bounding boxes for the changed region in image diffs.

- 0.8
* New image diff modes: onion skin, swipe
* Shrink to fit for image diffs
* More aggressive syntax highlighting (makes a guess based on file contents)
* Refresh no longer kills the webdiff server (useful if file changes on disk)
* Renames/moves are displayed more compactly (ala GitHub)

- 0.7
* Support for file vs. file diffs (i.e. webdiff as a replacement for diff)
* List of files instead of dropdown for small diffs
* Display resolution and file size for images
* Conversion to ReactJS

- 0.6
* Support for image diffs
* Basic move/rename detection
* Bug fixes

- 0.5
* Switched from jsdifflib to codediff.js, which provides syntax highlighting.
* Make better use of narrow browser windows
* Detect (and suppress) binary diffs

Project details


Download files

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

Source Distribution

webdiff-0.11.0.tar.gz (1.0 MB view details)

Uploaded Source

File details

Details for the file webdiff-0.11.0.tar.gz.

File metadata

  • Download URL: webdiff-0.11.0.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for webdiff-0.11.0.tar.gz
Algorithm Hash digest
SHA256 522407e7e90f5b17bff8fcfa862dd3c7376c2d7e507b5222327f270223c4dad4
MD5 8556f0c0dbd98e01770592ce5604d112
BLAKE2b-256 c0c9cc8ad4b857aaf7df9e519a5d2bed299764809a884baefd1f10c95bb62982

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page