Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
04c48afc
Commit
04c48afc
authored
Apr 20, 2018
by
Etienne Samson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: standardize struct git_*_options comments
parent
c7b42f44
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
27 deletions
+26
-27
include/git2/blame.h
+2
-3
include/git2/checkout.h
+2
-3
include/git2/clone.h
+2
-2
include/git2/describe.h
+7
-4
include/git2/diff.h
+3
-2
include/git2/stash.h
+4
-4
include/git2/submodule.h
+2
-3
include/git2/worktree.h
+4
-6
No files found.
include/git2/blame.h
View file @
04c48afc
...
...
@@ -48,9 +48,8 @@ typedef enum {
/**
* Blame options structure
*
* Use zeros to indicate default settings. It's easiest to use the
* `GIT_BLAME_OPTIONS_INIT` macro:
* git_blame_options opts = GIT_BLAME_OPTIONS_INIT;
* Initialize with `GIT_BLAME_OPTIONS_INIT`. Alternatively, you can
* use `git_blame_init_options`.
*
*/
typedef
struct
git_blame_options
{
...
...
include/git2/checkout.h
View file @
04c48afc
...
...
@@ -243,10 +243,9 @@ typedef void (*git_checkout_perfdata_cb)(
/**
* Checkout options structure
*
*
Zero out for defaults. Initialize with `GIT_CHECKOUT_OPTIONS_INIT` macro to
*
correctly set the `version` field. E.g
.
*
Initialize with `GIT_CHECKOUT_OPTIONS_INIT`. Alternatively, you can
*
use `git_checkout_init_options`
.
*
* git_checkout_options opts = GIT_CHECKOUT_OPTIONS_INIT;
*/
typedef
struct
git_checkout_options
{
unsigned
int
version
;
...
...
include/git2/clone.h
View file @
04c48afc
...
...
@@ -96,9 +96,9 @@ typedef int (*git_repository_create_cb)(
/**
* Clone options structure
*
* Use the GIT_CLONE_OPTIONS_INIT to get the default settings, like this:
* Initialize with `GIT_CLONE_OPTIONS_INIT`. Alternatively, you can
* use `git_clone_init_options`.
*
* git_clone_options opts = GIT_CLONE_OPTIONS_INIT;
*/
typedef
struct
git_clone_options
{
unsigned
int
version
;
...
...
include/git2/describe.h
View file @
04c48afc
...
...
@@ -36,10 +36,9 @@ typedef enum {
/**
* Describe options structure
*
* Initialize with `GIT_DESCRIBE_OPTIONS_INIT`
macro to correctly set
*
the `version` field. E.g
.
* Initialize with `GIT_DESCRIBE_OPTIONS_INIT`
. Alternatively, you can
*
use `git_describe_init_options`
.
*
* git_describe_options opts = GIT_DESCRIBE_OPTIONS_INIT;
*/
typedef
struct
git_describe_options
{
unsigned
int
version
;
...
...
@@ -83,7 +82,11 @@ typedef struct git_describe_options {
GIT_EXTERN
(
int
)
git_describe_init_options
(
git_describe_options
*
opts
,
unsigned
int
version
);
/**
* Options for formatting the describe string
* Describe format options structure
*
* Initialize with `GIT_DESCRIBE_FORMAT_OPTIONS_INIT`. Alternatively, you can
* use `git_describe_format_init_options`.
*
*/
typedef
struct
{
unsigned
int
version
;
...
...
include/git2/diff.h
View file @
04c48afc
...
...
@@ -1414,8 +1414,9 @@ GIT_EXTERN(int) git_diff_format_email_init_options(
/**
* Patch ID options structure
*
* Initialize with `GIT_DIFF_PATCHID_OPTIONS_INIT` macro to
* correctly set the default values and version.
* Initialize with `GIT_PATCHID_OPTIONS_INIT`. Alternatively, you can
* use `git_patchid_init_options`.
*
*/
typedef
struct
git_diff_patchid_options
{
unsigned
int
version
;
...
...
include/git2/stash.h
View file @
04c48afc
...
...
@@ -116,12 +116,12 @@ typedef int (*git_stash_apply_progress_cb)(
git_stash_apply_progress_t
progress
,
void
*
payload
);
/** Stash application options structure.
/**
* Stash application options structure
*
* Initialize with
the `GIT_STASH_APPLY_OPTIONS_INIT` macro to set
*
sensible defaults; for example:
* Initialize with
`GIT_STASH_APPLY_OPTIONS_INIT`. Alternatively, you can
*
use `git_stash_apply_init_options`.
*
* git_stash_apply_options opts = GIT_STASH_APPLY_OPTIONS_INIT;
*/
typedef
struct
git_stash_apply_options
{
unsigned
int
version
;
...
...
include/git2/submodule.h
View file @
04c48afc
...
...
@@ -121,10 +121,9 @@ typedef int (*git_submodule_cb)(
/**
* Submodule update options structure
*
*
Use the GIT_SUBMODULE_UPDATE_OPTIONS_INIT to get the default settings,
*
like this:
*
Initialize with `GIT_SUBMODULE_UPDATE_OPTIONS_INIT`. Alternatively, you can
*
use `git_submodule_update_init_options`.
*
* git_submodule_update_options opts = GIT_SUBMODULE_UPDATE_OPTIONS_INIT;
*/
typedef
struct
git_submodule_update_options
{
unsigned
int
version
;
...
...
include/git2/worktree.h
View file @
04c48afc
...
...
@@ -77,10 +77,9 @@ GIT_EXTERN(int) git_worktree_validate(const git_worktree *wt);
/**
* Worktree add options structure
*
*
Zero out for defaults. Initialize with `GIT_WORKTREE_ADD_OPTIONS_INIT`
*
macro to correctly set the `version` field. E.g
.
*
Initialize with `GIT_WORKTREE_ADD_OPTIONS_INIT`. Alternatively, you can
*
use `git_worktree_add_init_options`
.
*
* git_worktree_add_options opts = GIT_WORKTREE_ADD_OPTIONS_INIT;
*/
typedef
struct
git_worktree_add_options
{
unsigned
int
version
;
...
...
@@ -192,10 +191,9 @@ typedef enum {
/**
* Worktree prune options structure
*
*
Zero out for defaults. Initialize with `GIT_WORKTREE_PRUNE_OPTIONS_INIT`
*
macro to correctly set the `version` field. E.g
.
*
Initialize with `GIT_WORKTREE_PRUNE_OPTIONS_INIT`. Alternatively, you can
*
use `git_worktree_prune_init_options`
.
*
* git_worktree_prune_options opts = GIT_WORKTREE_PRUNE_OPTIONS_INIT;
*/
typedef
struct
git_worktree_prune_options
{
unsigned
int
version
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment