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
ec7e1c93
Commit
ec7e1c93
authored
Feb 10, 2015
by
Ben Chatelain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix doc comment formatting
parent
b703049c
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
22 additions
and
23 deletions
+22
-23
include/git2/annotated_commit.h
+3
-3
include/git2/cherrypick.h
+2
-2
include/git2/config.h
+4
-4
include/git2/describe.h
+3
-2
include/git2/oid.h
+1
-1
include/git2/rebase.h
+5
-5
include/git2/revert.h
+2
-2
include/git2/transport.h
+1
-1
include/git2/types.h
+1
-3
No files found.
include/git2/annotated_commit.h
View file @
ec7e1c93
...
...
@@ -44,7 +44,7 @@ GIT_EXTERN(int) git_annotated_commit_from_ref(
* @param repo repository that contains the given commit
* @param branch_name name of the (remote) branch
* @param remote_url url of the remote
* @param
o
id the commit object id of the remote branch
* @param id the commit object id of the remote branch
* @return 0 on success or error code
*/
GIT_EXTERN
(
int
)
git_annotated_commit_from_fetchhead
(
...
...
@@ -80,7 +80,7 @@ GIT_EXTERN(int) git_annotated_commit_lookup(
/**
* Gets the commit ID that the given `git_annotated_commit` refers to.
*
* @param
head
the given annotated commit
* @param
commit
the given annotated commit
* @return commit id
*/
GIT_EXTERN
(
const
git_oid
*
)
git_annotated_commit_id
(
...
...
@@ -89,7 +89,7 @@ GIT_EXTERN(const git_oid *) git_annotated_commit_id(
/**
* Frees a `git_annotated_commit`.
*
* @param
annotated_
commit annotated commit to free
* @param commit annotated commit to free
*/
GIT_EXTERN
(
void
)
git_annotated_commit_free
(
git_annotated_commit
*
commit
);
...
...
include/git2/cherrypick.h
View file @
ec7e1c93
...
...
@@ -29,8 +29,8 @@ typedef struct {
/** For merge commits, the "mainline" is treated as the parent. */
unsigned
int
mainline
;
git_merge_options
merge_opts
;
/*
<
Options for the merging */
git_checkout_options
checkout_opts
;
/*
<
Options for the checkout */
git_merge_options
merge_opts
;
/* Options for the merging */
git_checkout_options
checkout_opts
;
/* Options for the checkout */
}
git_cherrypick_options
;
#define GIT_CHERRYPICK_OPTIONS_VERSION 1
...
...
include/git2/config.h
View file @
ec7e1c93
...
...
@@ -59,9 +59,9 @@ typedef enum {
* An entry in a configuration file
*/
typedef
struct
{
const
char
*
name
;
/*
<
Name of the entry (normalised) */
const
char
*
value
;
/*
<
String value of the entry */
git_config_level_t
level
;
/*
<
Which config file this was found in */
const
char
*
name
;
/* Name of the entry (normalised) */
const
char
*
value
;
/* String value of the entry */
git_config_level_t
level
;
/* Which config file this was found in */
}
git_config_entry
;
typedef
int
(
*
git_config_foreach_cb
)(
const
git_config_entry
*
,
void
*
);
...
...
@@ -333,7 +333,7 @@ GIT_EXTERN(int) git_config_get_bool(int *out, const git_config *cfg, const char
* @param out the buffer in which to store the result
* @param cfg where to look for the variable
* @param name the variable's name
* @
param
0 or an error code
* @
return
0 or an error code
*/
GIT_EXTERN
(
int
)
git_config_get_path
(
git_buf
*
out
,
const
git_config
*
cfg
,
const
char
*
name
);
...
...
include/git2/describe.h
View file @
ec7e1c93
...
...
@@ -129,7 +129,7 @@ GIT_EXTERN(int) git_describe_commit(
* worktree. After peforming describe on HEAD, a status is run and the
* description is considered to be dirty if there are.
*
* @param
resul
t pointer to store the result. You must free this once
* @param
ou
t pointer to store the result. You must free this once
* you're done with it.
* @param repo the repository in which to perform the describe
* @param opts the lookup options
...
...
@@ -142,9 +142,10 @@ GIT_EXTERN(int) git_describe_workdir(
/**
* Print the describe result to a buffer
*
* @param out The buffer to store the result
* @param result the result from `git_describe_commit()` or
* `git_describe_workdir()`.
* @param opt the formatting options
* @param opt
s
the formatting options
*/
GIT_EXTERN
(
int
)
git_describe_format
(
git_buf
*
out
,
...
...
include/git2/oid.h
View file @
ec7e1c93
...
...
@@ -123,7 +123,7 @@ GIT_EXTERN(void) git_oid_pathfmt(char *out, const git_oid *id);
* will be stored in TLS (i.e. one buffer per thread) to allow for
* concurrent calls of the function.
*
* @param
id t
he oid structure to format
* @param
oid T
he oid structure to format
* @return the c-string
*/
GIT_EXTERN
(
char
*
)
git_oid_tostr_s
(
const
git_oid
*
oid
);
...
...
include/git2/rebase.h
View file @
ec7e1c93
...
...
@@ -156,7 +156,7 @@ GIT_EXTERN(int) git_rebase_init(
* invocation of `git_rebase_init` or by another client.
*
* @param out Pointer to store the rebase object
* @param re
op
The repository that has a rebase in-progress
* @param re
po
The repository that has a rebase in-progress
* @return Zero on success; -1 on failure.
*/
GIT_EXTERN
(
int
)
git_rebase_open
(
git_rebase
**
out
,
git_repository
*
repo
);
...
...
@@ -195,8 +195,8 @@ GIT_EXTERN(git_rebase_operation *) git_rebase_operation_byindex(
* working directory will be updated with the changes. If there are conflicts,
* you will need to address those before committing the changes.
*
* @param o
ut
Pointer to store the rebase operation that is to be performed next
* @param re
po
The rebase in progress
* @param o
peration
Pointer to store the rebase operation that is to be performed next
* @param re
base
The rebase in progress
* @param checkout_opts Options to specify how the patch should be checked out
* @return Zero on success; -1 on failure.
*/
...
...
@@ -211,7 +211,7 @@ GIT_EXTERN(int) git_rebase_next(
* invocation.
*
* @param id Pointer in which to store the OID of the newly created commit
* @param re
po
The rebase that is in-progress
* @param re
base
The rebase that is in-progress
* @param author The author of the updated commit, or NULL to keep the
* author from the original commit
* @param committer The committer of the rebase
...
...
@@ -255,7 +255,7 @@ GIT_EXTERN(int) git_rebase_abort(
* @param rebase The rebase that is in-progress
* @param signature The identity that is finishing the rebase (optional)
* @param opts Options to specify how rebase is finished
* @
param
Zero on success; -1 on error
* @
return
Zero on success; -1 on error
*/
GIT_EXTERN
(
int
)
git_rebase_finish
(
git_rebase
*
rebase
,
...
...
include/git2/revert.h
View file @
ec7e1c93
...
...
@@ -29,8 +29,8 @@ typedef struct {
/** For merge commits, the "mainline" is treated as the parent. */
unsigned
int
mainline
;
git_merge_options
merge_opts
;
/*
<
Options for the merging */
git_checkout_options
checkout_opts
;
/*
<
Options for the checkout */
git_merge_options
merge_opts
;
/* Options for the merging */
git_checkout_options
checkout_opts
;
/* Options for the checkout */
}
git_revert_options
;
#define GIT_REVERT_OPTIONS_VERSION 1
...
...
include/git2/transport.h
View file @
ec7e1c93
...
...
@@ -292,7 +292,7 @@ GIT_EXTERN(int) git_cred_username_new(git_cred **cred, const char *username);
*
* - cred: The newly created credential object.
* - url: The resource for which we are demanding a credential.
* - username_from_url: The username that was embedded in a "user@host"
* - username_from_url: The username that was embedded in a "user
\
@host"
* remote url, or NULL if not included.
* - allowed_types: A bitmask stating which cred types are OK to return.
* - payload: The payload provided when specifying this callback.
...
...
include/git2/types.h
View file @
ec7e1c93
...
...
@@ -302,9 +302,7 @@ typedef struct {
/**
* Callback for the user's custom certificate checks.
*
* @param type The type of certificate or host info, SSH or X.509
* @param data The data for the certificate or host info
* @param len The size of the certificate or host info
* @param cert The host certificate
* @param valid Whether the libgit2 checks (OpenSSL or WinHTTP) think
* this certificate is valid
* @param host Hostname of the host libgit2 connected to
...
...
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