Skip to content

Commit 2f777fa

Browse files
committed
Merge branch 'hn/submodule-comment'
* hn/submodule-comment: submodule.c: describe submodule_to_gitdir() in a new comment
2 parents 3b48045 + 3ce0854 commit 2f777fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)