Slightly older version of master from https://github.com/j6t/gitk

gitk: _search_exe is no longer needed

The _search_exe variable allows specifying the suffix used for executables,
typically {} on unix, .exe on Windows. But, the override code is now
used only on Windows, so _search_exe is no longer needed. Eliminate it.

Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>

authored by

Mark Levedahl and committed by
Johannes Sixt
74571bff 1925c292

+2 -3
+2 -3
gitk
··· 27 27 if {[is_Windows]} { 28 28 set _search_path {} 29 29 proc _which {what args} { 30 - global env _search_exe _search_path 30 + global env _search_path 31 31 32 32 if {$_search_path eq {}} { 33 33 set gitguidir [file dirname [info script]] ··· 37 37 # Skip empty `PATH` elements 38 38 set _search_path [lsearch -all -inline -not -exact \ 39 39 $_search_path ""] 40 - set _search_exe .exe 41 40 } 42 41 43 42 if {[lsearch -exact $args -script] >= 0} { 44 43 set suffix {} 45 44 } else { 46 - set suffix $_search_exe 45 + set suffix .exe 47 46 } 48 47 49 48 foreach p $_search_path {