Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2009-12-30 13:55:36 +0300
committerJunio C Hamano <gitster@pobox.com>2010-01-06 10:41:50 +0300
commitf445644fd28d31a828731a618e9a9c79be89efd2 (patch)
tree19f58a2063483bbe12e84f606145f267fa5b2a40 /editor.c
parentac0ba18df0c58decfb128336bab51a172c77abc0 (diff)
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 'editor.c')
0 files changed, 0 insertions, 0 deletions