Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2008-12-02 01:17:46 +0300
committerPaul Mackerras <paulus@samba.org>2008-12-02 01:28:06 +0300
commit6e7e87c762fb0d8aa21c96c1d2c4596e46f2ab7b (patch)
treee3a6ecf872be31310a7d2e8b78e505fbf4be79e9
parent8b39e04f39c287d8c66b24cc4f6c72916831455c (diff)
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 <paulus@samba.org>
-rwxr-xr-xgitk6
1 files changed, 1 insertions, 5 deletions
diff --git a/gitk b/gitk
index 52d8aaef89..b7447f91c0 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" {