Skip to content

Commit a2fa9a5

Browse files
committed
Add some missing documentation about return value
1 parent eeacd23 commit a2fa9a5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

include/git2/apply.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ GIT_EXTERN(int) git_apply_options_init(git_apply_options *opts, unsigned int ver
100100
* @param preimage the tree to apply the diff to
101101
* @param diff the diff to apply
102102
* @param options the options for the apply (or null for defaults)
103+
* @return 0 or an error code
103104
*/
104105
GIT_EXTERN(int) git_apply_to_tree(
105106
git_index **out,
@@ -137,6 +138,7 @@ typedef enum {
137138
* @param diff the diff to apply
138139
* @param location the location to apply (workdir, index or both)
139140
* @param options the options for the apply (or null for defaults)
141+
* @return 0 or an error code
140142
*/
141143
GIT_EXTERN(int) git_apply(
142144
git_repository *repo,

include/git2/tree.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ GIT_EXTERN(int) git_treebuilder_insert(
334334
*
335335
* @param bld Tree builder
336336
* @param filename Filename of the entry to remove
337+
* @return 0 or an error code
337338
*/
338339
GIT_EXTERN(int) git_treebuilder_remove(
339340
git_treebuilder *bld, const char *filename);
@@ -463,6 +464,7 @@ typedef struct {
463464
* @param baseline the tree to base these changes on
464465
* @param nupdates the number of elements in the update list
465466
* @param updates the list of updates to perform
467+
* @return 0 or an error code
466468
*/
467469
GIT_EXTERN(int) git_tree_create_updated(git_oid *out, git_repository *repo, git_tree *baseline, size_t nupdates, const git_tree_update *updates);
468470

0 commit comments

Comments
 (0)