Skip to content

Instantly share code, notes, and snippets.

@gburd
Created March 1, 2017 16:31
Show Gist options
  • Select an option

  • Save gburd/dfd33fceb7fd7065c122ad85e1f1f256 to your computer and use it in GitHub Desktop.

Select an option

Save gburd/dfd33fceb7fd7065c122ad85e1f1f256 to your computer and use it in GitHub Desktop.
How to use Kaleidascope for code reivew
Installing KSReview
To install ksreview from the command line, just enter the following:
git config --global alias.ksreview '!f() { local SHA=${1:-HEAD}; local BRANCH=${2:-master}; if [ $SHA == $BRANCH ]; then SHA=HEAD; fi; git difftool -y -t Kaleidoscope $BRANCH...$SHA; }; f'
Using KSReview
To use ksreview while you're on the feature branch, assuming your mainline branch is master, just enter the following at the command line:
git ksreview
If you're on a different branch or your mainline isn't master, you can be more specific:
git ksreview feature-branch-name-or-sha mainline-branch-name
We hope you enjoy using ksreview!
@gburd
Copy link
Author

gburd commented Mar 1, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment