]> git.ipfire.org Git - thirdparty/git.git/blobdiff - submodule.h
submodule: add a helper to check if it is safe to write to .gitmodules
[thirdparty/git.git] / submodule.h
index e452919aa467413107ea749fe90b17e4e3e198c4..7a22f71cb952f70733be3da6ab3b240122fe8561 100644 (file)
@@ -40,6 +40,7 @@ struct submodule_update_strategy {
 #define SUBMODULE_UPDATE_STRATEGY_INIT {SM_UPDATE_UNSPECIFIED, NULL}
 
 int is_gitmodules_unmerged(const struct index_state *istate);
+int is_writing_gitmodules_ok(void);
 int is_staging_gitmodules_ok(struct index_state *istate);
 int update_path_in_gitmodules(const char *oldpath, const char *newpath);
 int remove_path_from_gitmodules(const char *path);