Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sb/diff-color-move'
[gitweb.git]
/
submodule.c
diff --git
a/submodule.c
b/submodule.c
index f2f30bb488c05d9002d755feed65e9ca781a440c..3e3ea11761fda1c48a3cdd88e146a0f20338c364 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;