Skip to content

Commit 3ce0854

Browse files
hanwengitster
authored andcommitted
submodule.c: describe submodule_to_gitdir() in a new comment
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 28996ce commit 3ce0854

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

submodule.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,6 +1997,10 @@ const char *get_superproject_working_tree(void)
19971997
return ret;
19981998
}
19991999

2000+
/*
2001+
* Put the gitdir for a submodule (given relative to the main
2002+
* repository worktree) into `buf`, or return -1 on error.
2003+
*/
20002004
int submodule_to_gitdir(struct strbuf *buf, const char *submodule)
20012005
{
20022006
const struct submodule *sub;

0 commit comments

Comments
 (0)