mirror of
https://github.com/tj/git-extras.git
synced 2026-09-12 08:26:17 -04:00
7 lines
171 B
Bash
Executable file
7 lines
171 B
Bash
Executable file
#!/bin/sh
|
|
|
|
commit=$1
|
|
test -z $commit && echo "<commit> required" 1>&2 && exit 1
|
|
git branch --contains $commit | grep "*" > /dev/null && echo yes && exit
|
|
echo no && exit 1
|