2 # TopGit - A different patch queue manager
3 # (c) Petr Baudis <pasky@suse.cz> 2008
4 # (c) Per Cederqvist <ceder@lysator.liu.se> 2010
11 echo "Usage: ${tgname:-tg} [...] base [ branch... ]" >&2
17 if [ "$#" -eq 0 ]; then
23 name
="$(strip_ref "$
(git symbolic-ref
-q "$rev" 2>/dev
/null || echol
"$rev")")"
24 git rev-parse
--short --verify "refs/$topbases/$name" -- 2>/dev
/null ||
{
26 echo "$rev is not a TopGit branch" >&2