From: Paul Mackerras Date: Mon, 1 Dec 2008 22:17:46 +0000 (+1100) Subject: gitk: Fix bug in accessing undefined "notflag" variable X-Git-Url: https://privyetmir.co.uk/gitweb.cgi?a=commitdiff_plain;h=6e7e87c762fb0d8aa21c96c1d2c4596e46f2ab7b;p=gitk gitk: Fix bug in accessing undefined "notflag" variable As pointed out by Johannes Sixt and Alexander Gavrilov, commit 2958228430b63f2e38c55519d1f98d8d6d9e23f3 ("gitk: Fix switch statement in parseviewargs") exposed a latent bug in that $notflag was never initialized. Since it isn't used either, this removes it entirely. Signed-off-by: Paul Mackerras --- diff --git a/gitk b/gitk index 52d8aae..b7447f9 100755 --- a/gitk +++ b/gitk @@ -199,11 +199,7 @@ proc parseviewargs {n arglist} { set nextisval 1 lappend glflags $arg } - "--not" { - set notflag [expr {!$notflag}] - lappend revargs $arg - } - "--all" { + "--not" - "--all" { lappend revargs $arg } "--merge" {