Skip to content

Instantly share code, notes, and snippets.

@k-takata
Last active August 29, 2015 14:05
Show Gist options
  • Save k-takata/ad193c4acf96798dbc51 to your computer and use it in GitHub Desktop.
Save k-takata/ad193c4acf96798dbc51 to your computer and use it in GitHub Desktop.
Git hook to prevent pushing when patches are applied by StGit
#!/bin/sh
if stg top > /dev/null 2>&1; then
echo error: patch applied.
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment