diff --git a/bin/git-has b/bin/git-has new file mode 100755 index 0000000..711bf5a --- /dev/null +++ b/bin/git-has @@ -0,0 +1,6 @@ +#!/bin/sh + +commit=$1 +test -z $commit && echo " required" 1>&2 && exit 1 +git branch --contains $commit | grep "*" > /dev/null && echo yes && exit +echo no && exit 1