Skip to content

Instantly share code, notes, and snippets.

@benjie
Last active December 19, 2015 05:58
Show Gist options
  • Save benjie/5907540 to your computer and use it in GitHub Desktop.
Save benjie/5907540 to your computer and use it in GitHub Desktop.
Tig Pull - perform a `git pull` and then have `tig` open with the changes ready for review
alias 'tigpull'='RANGE=$(git -c color.ui=on pull | tee /dev/tty | grep "^Updating .*\.\." | sed "s/Updating //"); if [ "$RANGE" != "" ]; then tig $RANGE; fi'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment