submodule.c: submodule_move_head works with broken submodules
[gitweb.git] / submodule.h
index 4cdf6445f7a6dd61316f4d5c05bf472dfb4c2518..8a8bc49dc9626b9ba4112f3b0bf25b212d864d1d 100644 (file)
@@ -114,4 +114,12 @@ extern void prepare_submodule_repo_env(struct argv_array *out);
 extern void absorb_git_dir_into_superproject(const char *prefix,
                                             const char *path,
                                             unsigned flags);
+
+/*
+ * Return the absolute path of the working tree of the superproject, which this
+ * project is a submodule of. If this repository is not a submodule of
+ * another repository, return NULL.
+ */
+extern const char *get_superproject_working_tree(void);
+
 #endif