diff options
| author | Junio C Hamano <gitster@pobox.com> | 2012-06-12 22:47:12 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2012-07-09 14:36:26 -0700 |
| commit | f4c66eeddd37d3e5f4043df89c2679fbadeb57bd (patch) | |
| tree | fe64f3b19cc92d22e5fdcbcccfb5f4fa0e61b70d /commit.c | |
| parent | apply: refactor read_file_or_gitlink() (diff) | |
| download | git-f4c66eeddd37d3e5f4043df89c2679fbadeb57bd.tar.gz git-f4c66eeddd37d3e5f4043df89c2679fbadeb57bd.zip | |
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 'commit.c')
0 files changed, 0 insertions, 0 deletions
