From b45ef7feaffe07370ab0ccf84aead4d9e0eb7c4b Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 27 Mar 2013 09:18:47 +0100 Subject: [PATCH] quick exit on exact match --- git-identify-revision | 3 +++ 1 file changed, 3 insertions(+) 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." -- 2.39.2