AlexNisnevich / diffnow-cli

Command-line interface for comparing files on www.diffnow.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

diffnow-cli

diffnow-cli is a shell utility that enables you to compare files on DiffNow from the command line.

Three output modes are supported:

  • diffnow file1 file2 outputs a short url to an online diff report hosted on diffnow.com for one week.
  • diffnow -o output file1 file2 downloads an HTML diff report to output.
  • diffnow -b browser file1 file2 downloads an HTML diff report to a temporary location and opens it with the specified browser.

Using diffnow-cli with git

I've added the following lines to my global .gitconfig file:

[diff]
	tool = diffnow
[difftool "diffnow"]
	cmd = diffnow -b chromium $LOCAL $REMOTE
[difftool]
	prompt = false

Now I can compare a file to its previous version by running:

git difftool --gui <file>

About

Command-line interface for comparing files on www.diffnow.com


Languages

Language:Shell 100.0%