Imagine you have uncommited changes in your git repository and want to preview them before commiting.
Type differ
and get browser-based, efficient UI for previewing the changes. Inception shot:
Use j
/k
for next/previous file.
You can also diff 2 directories: differ ${dir1} ${dir2}
Differ is a port of https://github.com/danvk/webdiff from Python to Go.
Mac binary: differ
Must chmod ug+x differ
after downloading to mark it as executable.
Pre-requisites:
- node, for getting JavaScript libraries used in the front-end.
brew install node
on mac. zopfli
(brew install zopfli
on mac) for maximum compression of front-end assets
Build steps:
go get -u github.com/gophergala2016/kjkteam
orgit clone https://github.com/gophergala2016/kjkteam.git
npm install
to get the needed JavaScript libraries for the front-endscripts/build.sh
to build a self-containeddiffer
executable
git scdiff
support- refresh the diff on / reload and on "focus" event on window
- support for diffing images
- -share option that sends data to central server for sharing with other people
- native mac app
- native windows app
- try more random port numbers if can't bind to the default
- minify bundle.js