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.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.9.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

webdiff-0.9.1-py2-none-any.whl (1.2 MB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for webdiff-0.9.1.tar.gz
Algorithm Hash digest
SHA256 88a02c25deb79ecded3bebfc0bdddbbce121b01150589ea8b68bec83d75df44c
MD5 54a2e133b82465b90c9503e54ca4498d
BLAKE2b-256 cdd65046ab9f5621ced1a42ce24ddf2294a1df1bcc6dcf8617e024343ebf02fb

See more details on using hashes here.

File details

Details for the file webdiff-0.9.1-py2-none-any.whl.

File metadata

File hashes

Hashes for webdiff-0.9.1-py2-none-any.whl
Algorithm Hash digest
SHA256 8d70d90aa1c28fffe5aed1966801608f559ba994a6c4c430911909fcf2e0ce54
MD5 f08df4bc68d3e54f23813398f95f5825
BLAKE2b-256 87fab10344b58fa131c8bffee1471d2159028dc6a51d6d69210a8d68d10d5d20

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