entry.c: create submodules when interesting
authorStefan Beller <sbeller@google.com>
Tue, 14 Mar 2017 21:46:40 +0000 (14:46 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Mar 2017 21:07:16 +0000 (14:07 -0700)
commit6d14eac3ec3e935ada977dfbdf4c61a0a3222010
tree3a95ffe7b75216bb6c1349709fb9dae1a9ed7091
parenta7bc845a9ae2bc4c58566e6744dd3cec0f805244
entry.c: create submodules when interesting

When a submodule is introduced with a new revision
we need to create the submodule in the worktree as well.
As 'submodule_move_head' handles edge cases, all we have
to do is call it from within the function that creates
new files in the working tree for workingtree operations.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
entry.c