1
0
mirror of https://github.com/git/git.git synced 2024-11-18 23:13:58 +01:00

Merge branch 'hn/submodule-comment'

* hn/submodule-comment:
  submodule.c: describe submodule_to_gitdir() in a new comment
This commit is contained in:
Junio C Hamano 2017-10-03 15:42:48 +09:00
commit 2f777fad34

@ -1997,6 +1997,10 @@ const char *get_superproject_working_tree(void)
return ret;
}
/*
* Put the gitdir for a submodule (given relative to the main
* repository worktree) into `buf`, or return -1 on error.
*/
int submodule_to_gitdir(struct strbuf *buf, const char *submodule)
{
const struct submodule *sub;