Skip to main content

Two-column web-based git difftool

Project description

git webdiff for COI

CodeQL workflow Bors enabled

Two-column web-based git difftool for Chromium Open IDE(COI).

Features include:

  • Side-by-side (two column) diff view.
  • Runs in the browser of your choice on any platform.
  • Syntax highlighting via highlight.js.
  • Step back and forth through multiple files in a single diff.
Screenshot of webdiff for COI in action

Tips: this project is forked from danvk/webdiff.

Installation

pip install webdiff-for-coi

Usage

Instead of running "git diff", run:

git webdiff

You can also start webdiff via:

git webdiff [args]

You can pass all the same arguments that you would to git diff, e.g. 1234..5678 or HEAD.

webdiff can also be invoked directly to diff two directories or files:

webdiff <left_dir> <right_dir>
webdiff <left_file> <right_file>

You can also use webdiff to view GitHub pull requests:

webdiff https://github.com/owner/repo/pull/123
webdiff #123  # if you're in a git repo with a github remote

This will download the files relevant to the Pull Request and run webdiff.

If you run into GitHub API quota limits or you'd like to use webdiff with private repos, you can set your credentials in a .githubrc file:

user.login: yourusername
user.token: your-personal-access-tokens

Make sure you chmod this file to only be readable by yourself. You can generate a personal access token for webdiff via github.com → profile → Settings → Personal access tokens. Make sure to grant all the "repo" privileges.

Enjoy!

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-for-coi-0.15.7.tar.gz (492.3 kB view details)

Uploaded Source

File details

Details for the file webdiff-for-coi-0.15.7.tar.gz.

File metadata

  • Download URL: webdiff-for-coi-0.15.7.tar.gz
  • Upload date:
  • Size: 492.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.1

File hashes

Hashes for webdiff-for-coi-0.15.7.tar.gz
Algorithm Hash digest
SHA256 998de00a5fd2f9bc53982bbb1d8c06f6b45efaeedbdb7e09a02c9c24b327cb90
MD5 2e981bbb9d4205483c85a093e9f06a75
BLAKE2b-256 0a00cd0293161d3e93d27a93ed63233561623233fc832ede1af79cb7244e79a8

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