Skip to content

Commit 75db289

Browse files
authored
Merge pull request libgit2#3980 from tiennou/doc-fixes
Documentation fixes
2 parents 42864e5 + 8d400c0 commit 75db289

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

include/git2/describe.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ typedef enum {
4444
typedef struct git_describe_options {
4545
unsigned int version;
4646

47-
unsigned int max_candidates_tags; /** default: 10 */
48-
unsigned int describe_strategy; /** default: GIT_DESCRIBE_DEFAULT */
47+
unsigned int max_candidates_tags; /**< default: 10 */
48+
unsigned int describe_strategy; /**< default: GIT_DESCRIBE_DEFAULT */
4949
const char *pattern;
5050
/**
5151
* When calculating the distance from the matching tag or
@@ -105,6 +105,9 @@ typedef struct {
105105

106106
GIT_EXTERN(int) git_describe_init_format_options(git_describe_format_options *opts, unsigned int version);
107107

108+
/**
109+
* A struct that stores the result of a describe operation.
110+
*/
108111
typedef struct git_describe_result git_describe_result;
109112

110113
/**

include/git2/remote.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
*/
2727
GIT_BEGIN_DECL
2828

29-
typedef int (*git_remote_rename_problem_cb)(const char *problematic_refspec, void *payload);
30-
3129
/**
3230
* Add a remote with the default fetch refspec to the repository's configuration.
3331
*
@@ -360,6 +358,8 @@ typedef struct {
360358
} git_push_update;
361359

362360
/**
361+
* Callback used to inform of upcoming updates.
362+
*
363363
* @param updates an array containing the updates which will be sent
364364
* as commands to the destination.
365365
* @param len number of elements in `updates`
@@ -403,7 +403,7 @@ struct git_remote_callbacks {
403403
* connection to proceed. Returns 1 to allow the connection, 0
404404
* to disallow it or a negative value to indicate an error.
405405
*/
406-
git_transport_certificate_check_cb certificate_check;
406+
git_transport_certificate_check_cb certificate_check;
407407

408408
/**
409409
* During the download of new data, this will be regularly

include/git2/transaction.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
#define INCLUDE_git_transaction_h__
99

1010
#include "common.h"
11+
12+
/**
13+
* @file git2/transaction.h
14+
* @brief Git transactional reference routines
15+
* @defgroup git_transaction Git transactional reference routines
16+
* @ingroup Git
17+
* @{
18+
*/
1119
GIT_BEGIN_DECL
1220

1321
/**
@@ -107,5 +115,6 @@ GIT_EXTERN(int) git_transaction_commit(git_transaction *tx);
107115
*/
108116
GIT_EXTERN(void) git_transaction_free(git_transaction *tx);
109117

118+
/** @} */
110119
GIT_END_DECL
111120
#endif

0 commit comments

Comments
 (0)