submodule--helper: introduce get_submodule_displaypath()
commit74a10642aa88c52ebb169489ea212a592d7bf3ce
authorPrathamesh Chavan <pc44800@gmail.com>
Fri, 29 Sep 2017 09:44:51 +0000 (29 15:14 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Oct 2017 00:35:35 +0000 (2 09:35 +0900)
treebc9e73d4144fdada1aa2b7672b38321e7da84889
parent59c0ea183ad1c5c2b3790caa5046e4ecfa839247
submodule--helper: introduce get_submodule_displaypath()

Introduce function get_submodule_displaypath() to replace the code
occurring in submodule_init() for generating displaypath of the
submodule with a call to it.

This new function will also be used in other parts of the system
in later patches.

Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Prathamesh Chavan <pc44800@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c