summaryrefslogtreecommitdiff
path: root/git-gui/macosx
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2009-12-30 05:55:36 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-01-05 23:41:50 -0800
commitf445644fd28d31a828731a618e9a9c79be89efd2 (patch)
tree19f58a2063483bbe12e84f606145f267fa5b2a40 /git-gui/macosx
parentrun-command: convert simple callsites to use_shell (diff)
downloadtgif-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/macosx')
0 files changed, 0 insertions, 0 deletions