@@ -72,14 +72,17 @@ typedef struct git_config_entry {
7272
7373/**
7474 * Free a config entry
75+ *
76+ * @param entry The entry to free.
7577 */
76- GIT_EXTERN (void ) git_config_entry_free (git_config_entry * );
78+ GIT_EXTERN (void ) git_config_entry_free (git_config_entry * entry );
7779
7880/**
7981 * A config enumeration callback
8082 *
8183 * @param entry the entry currently being enumerated
8284 * @param payload a user-specified pointer
85+ * @return non-zero to terminate the iteration.
8386 */
8487typedef int GIT_CALLBACK (git_config_foreach_cb )(const git_config_entry * entry , void * payload );
8588
@@ -269,6 +272,7 @@ GIT_EXTERN(int) git_config_open_level(
269272 *
270273 * @param out pointer in which to store the config object
271274 * @param config the config object in which to look
275+ * @return 0 or an error code.
272276 */
273277GIT_EXTERN (int ) git_config_open_global (git_config * * out , git_config * config );
274278
@@ -422,6 +426,7 @@ GIT_EXTERN(int) git_config_get_string_buf(git_buf *out, const git_config *cfg, c
422426 * interested in. Use NULL to indicate all
423427 * @param callback the function to be called on each value of the variable
424428 * @param payload opaque pointer to pass to the callback
429+ * @return 0 or an error code.
425430 */
426431GIT_EXTERN (int ) git_config_get_multivar_foreach (const git_config * cfg , const char * name , const char * regexp , git_config_foreach_cb callback , void * payload );
427432
@@ -437,6 +442,7 @@ GIT_EXTERN(int) git_config_get_multivar_foreach(const git_config *cfg, const cha
437442 * @param name the variable's name
438443 * @param regexp regular expression to filter which variables we're
439444 * interested in. Use NULL to indicate all
445+ * @return 0 or an error code.
440446 */
441447GIT_EXTERN (int ) git_config_multivar_iterator_new (git_config_iterator * * out , const git_config * cfg , const char * name , const char * regexp );
442448
@@ -515,6 +521,7 @@ GIT_EXTERN(int) git_config_set_string(git_config *cfg, const char *name, const c
515521 * @param name the variable's name
516522 * @param regexp a regular expression to indicate which values to replace
517523 * @param value the new value.
524+ * @return 0 or an error code.
518525 */
519526GIT_EXTERN (int ) git_config_set_multivar (git_config * cfg , const char * name , const char * regexp , const char * value );
520527
@@ -524,6 +531,7 @@ GIT_EXTERN(int) git_config_set_multivar(git_config *cfg, const char *name, const
524531 *
525532 * @param cfg the configuration
526533 * @param name the variable to delete
534+ * @return 0 or an error code.
527535 */
528536GIT_EXTERN (int ) git_config_delete_entry (git_config * cfg , const char * name );
529537
@@ -568,7 +576,8 @@ GIT_EXTERN(int) git_config_foreach(
568576 * `git_config_iterator_free` when done.
569577 *
570578 * @param out pointer to store the iterator
571- * @param cfg where to ge the variables from
579+ * @param cfg where to get the variables from
580+ * @return 0 or an error code.
572581 */
573582GIT_EXTERN (int ) git_config_iterator_new (git_config_iterator * * out , const git_config * cfg );
574583
@@ -585,6 +594,7 @@ GIT_EXTERN(int) git_config_iterator_new(git_config_iterator **out, const git_con
585594 * @param out pointer to store the iterator
586595 * @param cfg where to ge the variables from
587596 * @param regexp regular expression to match the names
597+ * @return 0 or an error code.
588598 */
589599GIT_EXTERN (int ) git_config_iterator_glob_new (git_config_iterator * * out , const git_config * cfg , const char * regexp );
590600
@@ -662,6 +672,7 @@ GIT_EXTERN(int) git_config_get_mapped(
662672 * @param maps array of `git_configmap` objects specifying the possible mappings
663673 * @param map_n number of mapping objects in `maps`
664674 * @param value value to parse
675+ * @return 0 or an error code.
665676 */
666677GIT_EXTERN (int ) git_config_lookup_map_value (
667678 int * out ,
@@ -678,6 +689,7 @@ GIT_EXTERN(int) git_config_lookup_map_value(
678689 *
679690 * @param out place to store the result of the parsing
680691 * @param value value to parse
692+ * @return 0 or an error code.
681693 */
682694GIT_EXTERN (int ) git_config_parse_bool (int * out , const char * value );
683695
@@ -690,6 +702,7 @@ GIT_EXTERN(int) git_config_parse_bool(int *out, const char *value);
690702 *
691703 * @param out place to store the result of the parsing
692704 * @param value value to parse
705+ * @return 0 or an error code.
693706 */
694707GIT_EXTERN (int ) git_config_parse_int32 (int32_t * out , const char * value );
695708
@@ -702,6 +715,7 @@ GIT_EXTERN(int) git_config_parse_int32(int32_t *out, const char *value);
702715 *
703716 * @param out place to store the result of the parsing
704717 * @param value value to parse
718+ * @return 0 or an error code.
705719 */
706720GIT_EXTERN (int ) git_config_parse_int64 (int64_t * out , const char * value );
707721
@@ -717,6 +731,7 @@ GIT_EXTERN(int) git_config_parse_int64(int64_t *out, const char *value);
717731 *
718732 * @param out placae to store the result of parsing
719733 * @param value the path to evaluate
734+ * @return 0 or an error code.
720735 */
721736GIT_EXTERN (int ) git_config_parse_path (git_buf * out , const char * value );
722737
@@ -735,6 +750,7 @@ GIT_EXTERN(int) git_config_parse_path(git_buf *out, const char *value);
735750 * @param regexp regular expression to match against config names (can be NULL)
736751 * @param callback the function to call on each variable
737752 * @param payload the data to pass to the callback
753+ * @return 0 or an error code.
738754 */
739755GIT_EXTERN (int ) git_config_backend_foreach_match (
740756 git_config_backend * backend ,
0 commit comments