summaryrefslogtreecommitdiff
path: root/match-trees.c
diff options
context:
space:
mode:
authorSlavomir Vlcek <svlc@inventati.org>2014-11-12 14:10:22 +0100
committerJunio C Hamano <gitster@pobox.com>2014-11-13 10:40:41 -0800
commitc4f901d1593f3ef097c3e73daa2847ed9ad9efe0 (patch)
tree11c5b4fe233ad7c6e8e58c638bc7bb7262390b19 /match-trees.c
parent7fa1365c54c28b3cd9375539f381b54061a1880d (diff)
downloadgit-c4f901d1593f3ef097c3e73daa2847ed9ad9efe0.tar.gz
builtin: move builtin retrieval to get_builtin()sv/get-builtin
There was a redundant code for a builtin command retrieval in 'handle_builtin()' and 'is_builtin()'. Introduce a new function 'get_builtin()' and using it from both of these places to reduce the redundancy. Signed-off-by: Slavomir Vlcek <svlc@inventati.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'match-trees.c')
0 files changed, 0 insertions, 0 deletions