@@ -44,8 +44,11 @@ GIT_EXTERN(int) git_repository_new(git_repository **out);
4444 * trying to aggressively cleanup the repo before its
4545 * deallocation. `git_repository_free` already performs this operation
4646 * before deallocating the repo.
47+ *
48+ * @param repo The repository to clean up
49+ * @return 0 on success, or an error code
4750 */
48- GIT_EXTERN (void ) git_repository__cleanup (git_repository * repo );
51+ GIT_EXTERN (int ) git_repository__cleanup (git_repository * repo );
4952
5053/**
5154 * Update the filesystem config settings for an open repository
@@ -78,8 +81,9 @@ GIT_EXTERN(int) git_repository_reinit_filesystem(
7881 *
7982 * @param repo A repository object
8083 * @param config A Config object
84+ * @return 0 on success, or an error code
8185 */
82- GIT_EXTERN (void ) git_repository_set_config (git_repository * repo , git_config * config );
86+ GIT_EXTERN (int ) git_repository_set_config (git_repository * repo , git_config * config );
8387
8488/**
8589 * Set the Object Database for this repository
@@ -93,8 +97,9 @@ GIT_EXTERN(void) git_repository_set_config(git_repository *repo, git_config *con
9397 *
9498 * @param repo A repository object
9599 * @param odb An ODB object
100+ * @return 0 on success, or an error code
96101 */
97- GIT_EXTERN (void ) git_repository_set_odb (git_repository * repo , git_odb * odb );
102+ GIT_EXTERN (int ) git_repository_set_odb (git_repository * repo , git_odb * odb );
98103
99104/**
100105 * Set the Reference Database Backend for this repository
@@ -108,8 +113,9 @@ GIT_EXTERN(void) git_repository_set_odb(git_repository *repo, git_odb *odb);
108113 *
109114 * @param repo A repository object
110115 * @param refdb An refdb object
116+ * @return 0 on success, or an error code
111117 */
112- GIT_EXTERN (void ) git_repository_set_refdb (git_repository * repo , git_refdb * refdb );
118+ GIT_EXTERN (int ) git_repository_set_refdb (git_repository * repo , git_refdb * refdb );
113119
114120/**
115121 * Set the index file for this repository
@@ -123,8 +129,9 @@ GIT_EXTERN(void) git_repository_set_refdb(git_repository *repo, git_refdb *refdb
123129 *
124130 * @param repo A repository object
125131 * @param index An index object
132+ * @return 0 on success, or an error code
126133 */
127- GIT_EXTERN (void ) git_repository_set_index (git_repository * repo , git_index * index );
134+ GIT_EXTERN (int ) git_repository_set_index (git_repository * repo , git_index * index );
128135
129136/**
130137 * Set a repository to be bare.
0 commit comments