Skip to content

Commit 9ecbff1

Browse files
authored
Merge pull request libgit2#5903 from punkymaniac/patch-documentation
Patch documentation
2 parents 868f4bc + a2fa9a5 commit 9ecbff1

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
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/common.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,11 @@ typedef enum {
356356
* >
357357
* > - `ciphers` is the list of ciphers that are eanbled.
358358
*
359+
* * opts(GIT_OPT_GET_USER_AGENT, git_buf *out)
360+
*
361+
* > Get the value of the User-Agent header.
362+
* > The User-Agent is written to the `out` buffer.
363+
*
359364
* * opts(GIT_OPT_ENABLE_OFS_DELTA, int enabled)
360365
*
361366
* > Enable or disable the use of "offset deltas" when creating packfiles,

include/git2/indexer.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ typedef struct git_indexer_progress {
5151
* Type for progress callbacks during indexing. Return a value less
5252
* than zero to cancel the indexing or download.
5353
*
54-
* @param stats Structure containing information about the state of the tran sfer
54+
* @param stats Structure containing information about the state of the transfer
5555
* @param payload Payload provided by caller
5656
*/
5757
typedef int GIT_CALLBACK(git_indexer_progress_cb)(const git_indexer_progress *stats, void *payload);
@@ -64,6 +64,7 @@ typedef struct git_indexer_options {
6464

6565
/** progress_cb function to call with progress information */
6666
git_indexer_progress_cb progress_cb;
67+
6768
/** progress_cb_payload payload for the progress callback */
6869
void *progress_cb_payload;
6970

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)