Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
submodule.c: describe submodule_to_gitdir() in a new comment
author
Han-Wen Nienhuys
<hanwen@google.com>
Mon, 25 Sep 2017 15:59:26 +0000
(17:59 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 26 Sep 2017 05:08:23 +0000
(14:08 +0900)
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
28996ce
)
diff --git
a/submodule.c
b/submodule.c
index b12600fc798f4427c8ad3bff1384c6fb5a6f4bc5..50bf3fb09c7ca7a890112304e96043623da5f6f5 100644
(file)
--- a/
submodule.c
+++ b/
submodule.c
@@
-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;