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
0b170f4d
Commit
0b170f4d
authored
Jul 01, 2013
by
Andrej Mitrovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix docs to use proper enum names that exist.
parent
c61300ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
include/git2/refs.h
+7
-7
include/git2/repository.h
+2
-2
No files found.
include/git2/refs.h
View file @
0b170f4d
...
@@ -32,7 +32,7 @@ GIT_BEGIN_DECL
...
@@ -32,7 +32,7 @@ GIT_BEGIN_DECL
* @param out pointer to the looked-up reference
* @param out pointer to the looked-up reference
* @param repo the repository to look up the reference
* @param repo the repository to look up the reference
* @param name the long name for the reference (e.g. HEAD, refs/heads/master, refs/tags/v0.1.0, ...)
* @param name the long name for the reference (e.g. HEAD, refs/heads/master, refs/tags/v0.1.0, ...)
* @return 0 on success,
ENOTFOUND,
EINVALIDSPEC or an error code.
* @return 0 on success,
GIT_ENOTFOUND, GIT_
EINVALIDSPEC or an error code.
*/
*/
GIT_EXTERN
(
int
)
git_reference_lookup
(
git_reference
**
out
,
git_repository
*
repo
,
const
char
*
name
);
GIT_EXTERN
(
int
)
git_reference_lookup
(
git_reference
**
out
,
git_repository
*
repo
,
const
char
*
name
);
...
@@ -49,7 +49,7 @@ GIT_EXTERN(int) git_reference_lookup(git_reference **out, git_repository *repo,
...
@@ -49,7 +49,7 @@ GIT_EXTERN(int) git_reference_lookup(git_reference **out, git_repository *repo,
* @param out Pointer to oid to be filled in
* @param out Pointer to oid to be filled in
* @param repo The repository in which to look up the reference
* @param repo The repository in which to look up the reference
* @param name The long name for the reference (e.g. HEAD, refs/heads/master, refs/tags/v0.1.0, ...)
* @param name The long name for the reference (e.g. HEAD, refs/heads/master, refs/tags/v0.1.0, ...)
* @return 0 on success,
ENOTFOUND,
EINVALIDSPEC or an error code.
* @return 0 on success,
GIT_ENOTFOUND, GIT_
EINVALIDSPEC or an error code.
*/
*/
GIT_EXTERN
(
int
)
git_reference_name_to_id
(
GIT_EXTERN
(
int
)
git_reference_name_to_id
(
git_oid
*
out
,
git_repository
*
repo
,
const
char
*
name
);
git_oid
*
out
,
git_repository
*
repo
,
const
char
*
name
);
...
@@ -94,7 +94,7 @@ GIT_EXTERN(int) git_reference_dwim(git_reference **out, git_repository *repo, co
...
@@ -94,7 +94,7 @@ GIT_EXTERN(int) git_reference_dwim(git_reference **out, git_repository *repo, co
* @param name The name of the reference
* @param name The name of the reference
* @param target The target of the reference
* @param target The target of the reference
* @param force Overwrite existing references
* @param force Overwrite existing references
* @return 0 on success,
EEXISTS,
EINVALIDSPEC or an error code
* @return 0 on success,
GIT_EEXISTS, GIT_
EINVALIDSPEC or an error code
*/
*/
GIT_EXTERN
(
int
)
git_reference_symbolic_create
(
git_reference
**
out
,
git_repository
*
repo
,
const
char
*
name
,
const
char
*
target
,
int
force
);
GIT_EXTERN
(
int
)
git_reference_symbolic_create
(
git_reference
**
out
,
git_repository
*
repo
,
const
char
*
name
,
const
char
*
target
,
int
force
);
...
@@ -126,7 +126,7 @@ GIT_EXTERN(int) git_reference_symbolic_create(git_reference **out, git_repositor
...
@@ -126,7 +126,7 @@ GIT_EXTERN(int) git_reference_symbolic_create(git_reference **out, git_repositor
* @param name The name of the reference
* @param name The name of the reference
* @param id The object id pointed to by the reference.
* @param id The object id pointed to by the reference.
* @param force Overwrite existing references
* @param force Overwrite existing references
* @return 0 on success,
EEXISTS,
EINVALIDSPEC or an error code
* @return 0 on success,
GIT_EEXISTS, GIT_
EINVALIDSPEC or an error code
*/
*/
GIT_EXTERN
(
int
)
git_reference_create
(
git_reference
**
out
,
git_repository
*
repo
,
const
char
*
name
,
const
git_oid
*
id
,
int
force
);
GIT_EXTERN
(
int
)
git_reference_create
(
git_reference
**
out
,
git_repository
*
repo
,
const
char
*
name
,
const
git_oid
*
id
,
int
force
);
...
@@ -225,7 +225,7 @@ GIT_EXTERN(git_repository *) git_reference_owner(const git_reference *ref);
...
@@ -225,7 +225,7 @@ GIT_EXTERN(git_repository *) git_reference_owner(const git_reference *ref);
* @param out Pointer to the newly created reference
* @param out Pointer to the newly created reference
* @param ref The reference
* @param ref The reference
* @param target The new target for the reference
* @param target The new target for the reference
* @return 0 on success, EINVALIDSPEC or an error code
* @return 0 on success,
GIT_
EINVALIDSPEC or an error code
*/
*/
GIT_EXTERN
(
int
)
git_reference_symbolic_set_target
(
GIT_EXTERN
(
int
)
git_reference_symbolic_set_target
(
git_reference
**
out
,
git_reference
**
out
,
...
@@ -268,7 +268,7 @@ GIT_EXTERN(int) git_reference_set_target(
...
@@ -268,7 +268,7 @@ GIT_EXTERN(int) git_reference_set_target(
* @param ref The reference to rename
* @param ref The reference to rename
* @param new_name The new name for the reference
* @param new_name The new name for the reference
* @param force Overwrite an existing reference
* @param force Overwrite an existing reference
* @return 0 on success,
EINVALIDSPEC,
EEXISTS or an error code
* @return 0 on success,
GIT_EINVALIDSPEC, GIT_
EEXISTS or an error code
*
*
*/
*/
GIT_EXTERN
(
int
)
git_reference_rename
(
GIT_EXTERN
(
int
)
git_reference_rename
(
...
@@ -488,7 +488,7 @@ typedef enum {
...
@@ -488,7 +488,7 @@ typedef enum {
* @param name Reference name to be checked.
* @param name Reference name to be checked.
* @param flags Flags to constrain name validation rules - see the
* @param flags Flags to constrain name validation rules - see the
* GIT_REF_FORMAT constants above.
* GIT_REF_FORMAT constants above.
* @return 0 on success, GIT_EBUFS if buffer is too small, EINVALIDSPEC
* @return 0 on success, GIT_EBUFS if buffer is too small,
GIT_
EINVALIDSPEC
* or an error code.
* or an error code.
*/
*/
GIT_EXTERN
(
int
)
git_reference_normalize_name
(
GIT_EXTERN
(
int
)
git_reference_normalize_name
(
...
...
include/git2/repository.h
View file @
0b170f4d
...
@@ -178,7 +178,7 @@ GIT_EXTERN(int) git_repository_init(
...
@@ -178,7 +178,7 @@ GIT_EXTERN(int) git_repository_init(
* when initializing a new repo. Details of individual values are:
* when initializing a new repo. Details of individual values are:
*
*
* * BARE - Create a bare repository with no working directory.
* * BARE - Create a bare repository with no working directory.
* * NO_REINIT - Return an EEXISTS error if the repo_path appears to
* * NO_REINIT - Return an
GIT_
EEXISTS error if the repo_path appears to
* already be an git repository.
* already be an git repository.
* * NO_DOTGIT_DIR - Normally a "/.git/" will be appended to the repo
* * NO_DOTGIT_DIR - Normally a "/.git/" will be appended to the repo
* path for non-bare repos (if it is not already there), but
* path for non-bare repos (if it is not already there), but
...
@@ -601,7 +601,7 @@ GIT_EXTERN(int) git_repository_set_head_detached(
...
@@ -601,7 +601,7 @@ GIT_EXTERN(int) git_repository_set_head_detached(
* If the HEAD is already detached and points to a Tag, the HEAD is
* If the HEAD is already detached and points to a Tag, the HEAD is
* updated into making it point to the peeled Commit, and 0 is returned.
* updated into making it point to the peeled Commit, and 0 is returned.
*
*
* If the HEAD is already detached and points to a non commitish, the HEAD is
* If the HEAD is already detached and points to a non commitish, the HEAD is
* unaltered, and -1 is returned.
* unaltered, and -1 is returned.
*
*
* Otherwise, the HEAD will be detached and point to the peeled Commit.
* Otherwise, the HEAD will be detached and point to the peeled Commit.
...
...
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