From: Uwe Kleine-König Date: Wed, 25 Feb 2009 10:05:00 +0000 (+0100) Subject: [TOPGIT] limit rev-list in branch_contains to a single rev X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=commitdiff_plain;h=991921b9e0009b6127e0c3d996c682bee555b99b [TOPGIT] limit rev-list in branch_contains to a single rev This eases reading of debug output using sh -x and probably helps performance, too. Signed-off-by: Uwe Kleine-König --- diff --git a/tg.sh b/tg.sh index 8c23d26..ccb40cd 100644 --- a/tg.sh +++ b/tg.sh @@ -77,7 +77,7 @@ measure_branch() # Whether B1 is a superset of B2. branch_contains() { - [ -z "$(git rev-list ^"$1" "$2" --)" ] + [ -z "$(git rev-list --max-count=1 ^"$1" "$2" --)" ] } # ref_exists REF