]> git.ipfire.org Git - thirdparty/git.git/commitdiff
gitk: fix a 'continue' statement outside a loop to 'return'
authorJohannes Sixt <j6t@kdbg.org>
Thu, 6 Nov 2025 08:20:41 +0000 (09:20 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Thu, 6 Nov 2025 09:59:02 +0000 (10:59 +0100)
When 5de460a2cfdd (gitk: Refactor per-line part of getblobdiffline and
its support) moved the body of a loop into a separate function, several
'continue' statements were changed to 'return'. But one instance was
missed. Fix it now.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
gitk

diff --git a/gitk b/gitk
index c02db0194d53172e79e5fc2a4401460439616771..eb657aa1e491b4f91382f7a9e25fe826834ef1eb 100755 (executable)
--- a/gitk
+++ b/gitk
@@ -8296,7 +8296,7 @@ proc parseblobdiffline {ids line} {
         if {![regexp {^diff (--cc|--git) } $line m type]} {
             set line [convertfrom utf-8 $line]
             $ctext insert end "$line\n" hunksep
-            continue
+            return
         }
         # start of a new file
         set diffinhdr 1