aboutsummaryrefslogtreecommitdiff
path: root/mktag.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2009-12-30 05:55:36 -0500
committerJunio C Hamano <gitster@pobox.com>2010-01-05 23:41:50 -0800
commitf445644fd28d31a828731a618e9a9c79be89efd2 (patch)
tree19f58a2063483bbe12e84f606145f267fa5b2a40 /mktag.c
parentac0ba18df0c58decfb128336bab51a172c77abc0 (diff)
downloadgit-f445644fd28d31a828731a618e9a9c79be89efd2.tar.gz
git-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 'mktag.c')
0 files changed, 0 insertions, 0 deletions