From: Rudolf Polzer Date: Wed, 27 Mar 2013 08:18:47 +0000 (+0100) Subject: quick exit on exact match X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b45ef7feaffe07370ab0ccf84aead4d9e0eb7c4b;p=xonotic%2Fdiv0-gittools.git quick exit on exact match --- diff --git a/git-identify-revision b/git-identify-revision index e71c259..c303913 100755 --- a/git-identify-revision +++ b/git-identify-revision @@ -61,6 +61,9 @@ for rev in $allrevs; do echo >&2 "Improved to $rev (score: $score)" bestrev=$rev bestrevscore=$score + if [ $score -eq 0 ]; then + break + fi fi done echo >&2 "Done."