mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-29 22:49:20 -05:00
git-gui: remove procs gitexec and _git_cmd
gitexec looks up and caches the method to execute git subcommands using the long deprecated dashed form if found in $(git--exec-path). But, git_read and git_write now use the dashless form, by-passing gitexec. This leaves two remaining uses of gitexec: one during startup to define use of an ssh_key helper, and one in the about dialog box. These are neither performance critical nor likely to be called more than once, so do not justify an otherwise unused cacheing system. Let's change those two uses, making gitexec unused. This allows removing gitexec and _git_cmd. Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
This commit is contained in:
@@ -44,7 +44,7 @@ proc do_about {} {
|
||||
|
||||
set d {}
|
||||
append d "git wrapper: $::_git\n"
|
||||
append d "git exec dir: [gitexec]\n"
|
||||
append d "git exec dir: [git --exec-path]\n"
|
||||
append d "git-gui lib: $oguilib"
|
||||
|
||||
paddedlabel $w.vers -text $v
|
||||
|
||||
Reference in New Issue
Block a user