summaryrefslogtreecommitdiff
path: root/exec_cmd.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-06-12 22:47:12 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-07-09 14:36:26 -0700
commitf4c66eeddd37d3e5f4043df89c2679fbadeb57bd (patch)
treefe64f3b19cc92d22e5fdcbcccfb5f4fa0e61b70d /exec_cmd.c
parentapply: refactor read_file_or_gitlink() (diff)
downloadtgif-f4c66eeddd37d3e5f4043df89c2679fbadeb57bd.tar.xz
apply: factor out checkout_target() helper function
When a patch wants to touch a path, if the path exists in the index but is missing in the working tree, "git apply --index" checks out the file to the working tree from the index automatically and then applies the patch. Split this logic out to a separate helper function. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'exec_cmd.c')
0 files changed, 0 insertions, 0 deletions