Skip to content

Instantly share code, notes, and snippets.

@steverichey
Created September 1, 2020 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steverichey/76b70d0a0ea229858bc35f88068b3376 to your computer and use it in GitHub Desktop.
Save steverichey/76b70d0a0ea229858bc35f88068b3376 to your computer and use it in GitHub Desktop.
!/usr/bin/env sh
set -eu
git diff master..HEAD | grep -B 2 -A 2 "${@}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment