clone: extract function from copy_or_link_directory
commit14954b799f0bac76e500593c95d1f274cf0636e5
authorMatheus Tavares <matheus.bernardino@usp.br>
Wed, 10 Jul 2019 23:59:02 +0000 (10 20:59 -0300)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jul 2019 20:52:15 +0000 (11 13:52 -0700)
tree80917c12efa7de0977796d38380f7780fcf99732
parent68c7c59cf202a4d90d96f19076a33d12278c5864
clone: extract function from copy_or_link_directory

Extract dir creation code snippet from copy_or_link_directory to its own
function named mkdir_if_missing. This change will help to remove
copy_or_link_directory's explicit recursion, which will be done in a
following patch. Also makes the code more readable.

Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c