refs.c: kill register_ref_store(), add register_submodule_ref_store()
commit378dc9103a6b36ecac5f63eb0d5a87f573081094
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 26 Mar 2017 02:42:28 +0000 (26 09:42 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Mar 2017 17:23:39 +0000 (27 10:23 -0700)
tree7ca254b4884475a9dcd33350643c879e17fe8236
parent126c9e05765330d29c973934598876cdea50b5df
refs.c: kill register_ref_store(), add register_submodule_ref_store()

This is the last function in this code (besides public API) that takes
submodule argument and handles both main/submodule cases. Break it down,
move main store registration in get_main_ref_store() and keep the rest
in register_submodule_ref_store().

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c