Skip to content
/ difr Public

Poor-man's code review tool; creates a static HTML page of a git diff with an editor for comments embedded.

Notifications You must be signed in to change notification settings

wspringer/difr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

One-minute Introduction

If you want to do a code review, and you consider all of the existing tools too bloated, too expensive or too limited, then difr might be perfectly suited for you. If you pass difr a diff file (wherever it might come from), then difr will turn that diff file into an HTML file (not unlike GitHub's view of a diff) with an embedded editor for adding comments.

Once you added all your comments, you simply save the file, or copy the entire page in your email.

Installation

Download a jar here. Other than that, all you need is Java.

Sample output

Sample output

Typical use cases

To create a review page for the diff between your working copy and what's currently on HEAD:

git diff | java -jar difr.jar > /tmp/review.html

To create a review page for your feature branch, if you're using git flow:

git flow feature diff {feature} | java -jar difr.jar > /tmp/review.html

Or if that's too much trouble, pass the HTML produced directly to your browser, using bcat, which is what I do all the time:

git flow feature diff {feature} | java -jar difr.jar | bcat

To get help on the options difr accepts, type:

java -jar difr.jar -h

About

Poor-man's code review tool; creates a static HTML page of a git diff with an editor for comments embedded.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published