Merge branch 'jt/submodule-name-to-gitdir'
Code refactoring. * jt/submodule-name-to-gitdir: submodule: extract path to submodule gitdir func
This commit is contained in:
@ -132,6 +132,13 @@ int push_unpushed_submodules(struct repository *r,
|
||||
*/
|
||||
int submodule_to_gitdir(struct strbuf *buf, const char *submodule);
|
||||
|
||||
/*
|
||||
* Given a submodule name, create a path to where the submodule's gitdir lives
|
||||
* inside of the provided repository's 'modules' directory.
|
||||
*/
|
||||
void submodule_name_to_gitdir(struct strbuf *buf, struct repository *r,
|
||||
const char *submodule_name);
|
||||
|
||||
/*
|
||||
* Make sure that no submodule's git dir is nested in a sibling submodule's.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user