fsck: convert init_skiplist to struct object_id
[gitweb.git] / submodule.h
index 05ab674f069282b3d5b20ca69d9a1fe8f295879b..c8a0c9cb2971219b807f7fe931c4dc5355b978ea 100644 (file)
@@ -93,4 +93,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