vendor/libgit2/src/config.h in rugged-0.23.3 vs vendor/libgit2/src/config.h in rugged-0.24.0b0

- old
+ new

@@ -86,6 +86,21 @@ * The opposite of git_config_lookup_map_value, we take an enum value * and map it to the string or bool value on the config. */ int git_config_lookup_map_enum(git_cvar_t *type_out, const char **str_out, const git_cvar_map *maps, size_t map_n, int enum_val); + +/** + * Unlock the backend with the highest priority + * + * Unlocking will allow other writers to updat the configuration + * file. Optionally, any changes performed since the lock will be + * applied to the configuration. + * + * @param cfg the configuration + * @param commit boolean which indicates whether to commit any changes + * done since locking + * @return 0 or an error code + */ +GIT_EXTERN(int) git_config_unlock(git_config *cfg, int commit); + #endif