GithubHelp home page GithubHelp logo

webrev's Introduction

webrev

This is a copy of the webrev code review tool found in illumos. Like the rest of illumos, it's licensed under the CDDL.

This version works on OS X and illumos-based systems.

Usage

First, make sure all of your changes are committed (more than one commit is okay). Then just run "webrev" from inside your repo. It will figure out what's changed and generate a directory called "webrev" with an index.html that's a completely offline code review browser.

For example, here are some changes:

$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)

$ git log -1 --name-only
commit 8f34dc4bb923e62460052d0e895a98f097a0f85b
Author: Dave Pacheco <[email protected]>
Date:   Thu Apr 11 16:54:50 2013 -0700

    sample changes

README.md

Now, run webrev:

$ webrev 
WARNING: codereview(1) not found.
WARNING: ps2pdf(1) not found.
   SCM detected: git
 File list from: git-active -p [email protected]:davepacheco/node-jsprim.git ... Done.
      Workspace: /Users/dap/work/node-jsprim/.git (at 8f34dc4bb923e62460052d0e895a98f097a0f85b)
Compare against: [email protected]:davepacheco/node-jsprim.git
      Output to: /Users/dap/work/node-jsprim/webrev
   Output Files:
        README.md
                 patch cdiffs udiffs wdiffs sdiffs frames old new
 Generating PDF: Skipped: no output available
     index.html: Done.

and open the generated index.html:

$ ls webrev/index.html 
webrev/index.html

The HTML files in the webrev directory use only relative links, so you can move the directory around wherever you want.

Advanced options

You can use "-p" to specify the parent (upstream) to compare against. This can be a git URL or just a regular git expression, as in "webrev -p HEAD^^^^^".

webrev's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.