From 991921b9e0009b6127e0c3d996c682bee555b99b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Wed, 25 Feb 2009 11:05:00 +0100 Subject: [PATCH] [TOPGIT] limit rev-list in branch_contains to a single rev MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This eases reading of debug output using sh -x and probably helps performance, too. Signed-off-by: Uwe Kleine-König --- tg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2