diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2020-01-18 17:42:52 +0000 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-01-24 15:12:56 -0600 |
| commit | cb43274a6b1eae490ab301f80ff13a69fe252610 (patch) | |
| tree | c8e25e0c19a2a30b68c515cf61ef9f1093153f1f /include/git2/sys | |
| parent | 82154e586c830a94059c3cfbed2d5ab4985cf3ce (diff) | |
| download | libgit2-cb43274a6b1eae490ab301f80ff13a69fe252610.tar.gz | |
index functions: return an int
Stop returning a void for functions, future-proofing them to allow them
to fail.
Diffstat (limited to 'include/git2/sys')
| -rw-r--r-- | include/git2/sys/index.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/git2/sys/index.h b/include/git2/sys/index.h index f1900df42..1f6d93f7a 100644 --- a/include/git2/sys/index.h +++ b/include/git2/sys/index.h @@ -75,8 +75,9 @@ GIT_EXTERN(int) git_index_name_add(git_index *index, * Remove all filename conflict entries. * * @param index an existing index object + * @return 0 or an error code */ -GIT_EXTERN(void) git_index_name_clear(git_index *index); +GIT_EXTERN(int) git_index_name_clear(git_index *index); /**@}*/ @@ -170,8 +171,9 @@ GIT_EXTERN(int) git_index_reuc_remove(git_index *index, size_t n); * Remove all resolve undo entries from the index * * @param index an existing index object + * @return 0 or an error code */ -GIT_EXTERN(void) git_index_reuc_clear(git_index *index); +GIT_EXTERN(int) git_index_reuc_clear(git_index *index); /**@}*/ |
