2 # TopGit - A different patch queue manager
3 # (c) Petr Baudis <pasky@suse.cz> 2008
4 # (c) Bert Wesarg <Bert.Wesarg@googlemail.com> 2009
18 echo "Usage: tg [...] log [NAME] [-- GIT LOG OPTIONS...]" >&2
21 [ -z "$name" ] || die
"name already specified ($name)"
26 [ -n "$name" ] || name
="$(git symbolic-ref HEAD | sed 's#^refs/heads/##')"
27 base_rev
="$(git rev-parse --short --verify "refs
/top-bases
/$name" 2>/dev/null)" ||
28 die
"not a TopGit-controlled branch"
30 git log
--first-parent --no-merges "$@" "refs/top-bases/$name"..
"$name"