diff options
author | Jeff King <peff@peff.net> | 2009-12-30 05:55:36 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-05 23:41:50 -0800 |
commit | f445644fd28d31a828731a618e9a9c79be89efd2 (patch) | |
tree | 19f58a2063483bbe12e84f606145f267fa5b2a40 /git-gui/lib/remote_add.tcl | |
parent | run-command: convert simple callsites to use_shell (diff) | |
download | tgif-f445644fd28d31a828731a618e9a9c79be89efd2.tar.xz |
run-command: optimize out useless shell calls
If there are no metacharacters in the program to be run, we
can just skip running the shell entirely and directly exec
the program.
The metacharacter test is pulled verbatim from
launch_editor, which already implements this optimization.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/remote_add.tcl')
0 files changed, 0 insertions, 0 deletions