]> git.ipfire.org Git - thirdparty/git.git/commit
git-gui: remove procs gitexec and _git_cmd
authorMark Levedahl <mlevedahl@gmail.com>
Sun, 6 Apr 2025 15:14:35 +0000 (11:14 -0400)
committerMark Levedahl <mlevedahl@gmail.com>
Mon, 21 Jul 2025 22:22:33 +0000 (18:22 -0400)
commiteaca720ecd4368943657c470d5ce0146804d09a7
tree16e0a38a42a904b59acb94ce22a7051e895524b3
parent6dfdf7bdcdcf735787e3d3dfcf3415fea1a81f8a
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>
git-gui.sh
lib/about.tcl