From: Marc Weber Date: Fri, 21 Nov 2008 09:05:30 +0000 (+0100) Subject: Pass -- to rev-list for branch/filename disambiguation X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=2ea19b66e94fa7ad28278277bda096394181a9d1;p=topgit.git Pass -- to rev-list for branch/filename disambiguation While playing around it happened that I called the topic branch and a file "foo"... Here is a small incomplete patch: I've not tried to catch all of these errors.. Signed-off-by: martin f. krafft --- diff --git a/tg.sh b/tg.sh index d8b6213..8c23d26 100644 --- a/tg.sh +++ b/tg.sh @@ -63,8 +63,8 @@ measure_branch() _bname="$1"; _base="$2" [ -n "$_base" ] || _base="refs/top-bases/$_bname" # The caller should've verified $name is valid - _commits="$(git rev-list "$_bname" ^"$_base" | wc -l)" - _nmcommits="$(git rev-list --no-merges "$_bname" ^"$_base" | wc -l)" + _commits="$(git rev-list "$_bname" ^"$_base" -- | wc -l)" + _nmcommits="$(git rev-list --no-merges "$_bname" ^"$_base" -- | wc -l)" if [ $_commits -gt 1 ]; then _suffix="commits" else