From: Junio C Hamano Date: Wed, 9 Jan 2013 20:59:26 +0000 (-0800) Subject: Meta/GRADUATED: do not show topics already merged to maint X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18fc017681c667999998561443a7ce82f9a4e06e;p=thirdparty%2Fgit.git Meta/GRADUATED: do not show topics already merged to maint --- diff --git a/GRADUATED b/GRADUATED index 5994a73653..c04040af8b 100755 --- a/GRADUATED +++ b/GRADUATED @@ -48,8 +48,12 @@ one_topic () { mergeable=no ready=no label= - master_count=$(git rev-list "$base..$tip" | wc -l) maint_count=$(git rev-list "maint..$tip" | wc -l) + if test "$maint_count" = 0 + then + return ;# already merged + fi + master_count=$(git rev-list "$base..$tip" | wc -l) test $master_count = $maint_count && mergeable=yes