[PATCH] [TOPGIT] limit rev-list in branch_contains to a single rev
- From
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
- Date
- Feb 25, 2009, 20:03 UTC
- Message-ID
- <1235592240-12616-1-git-send-email-u.kleine-koenig@pengutronix.de>
- In-Reply-To
- <20090225195856.GA12372@pengutronix.de>
This eases reading of debug output using sh -x and probably helps performance, too.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> --- tg.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
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
-- 1.5.6.5