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
5fd17fc2
Commit
5fd17fc2
authored
Aug 15, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notes: slight documentation enhancements
parent
1a0537e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
include/git2/notes.h
+14
-12
No files found.
include/git2/notes.h
View file @
5fd17fc2
...
@@ -23,10 +23,11 @@ GIT_BEGIN_DECL
...
@@ -23,10 +23,11 @@ GIT_BEGIN_DECL
*
*
* The note must be freed manually by the user.
* The note must be freed manually by the user.
*
*
* @param note the note; NULL in case of error
* @param note pointer to the read note; NULL in case of error
* @param repo the Git repository
* @param repo repository where to look up the note
* @param notes_ref OID reference to use (optional); defaults to "refs/notes/commits"
* @param notes_ref canonical name of the reference to use (optional);
* @param oid OID of the object
* defaults to "refs/notes/commits"
* @param oid OID of the git object to read the note from
*
*
* @return 0 or an error code
* @return 0 or an error code
*/
*/
...
@@ -50,17 +51,17 @@ GIT_EXTERN(const char *) git_note_message(git_note *note);
...
@@ -50,17 +51,17 @@ GIT_EXTERN(const char *) git_note_message(git_note *note);
*/
*/
GIT_EXTERN
(
const
git_oid
*
)
git_note_oid
(
git_note
*
note
);
GIT_EXTERN
(
const
git_oid
*
)
git_note_oid
(
git_note
*
note
);
/**
/**
* Add a note for an object
* Add a note for an object
*
*
* @param out pointer to store the OID (optional); NULL in case of error
* @param out pointer to store the OID (optional); NULL in case of error
* @param repo
the Git repository
* @param repo
repository where to store the note
* @param author signature of the notes commit author
* @param author signature of the notes commit author
* @param committer signature of the notes commit committer
* @param committer signature of the notes commit committer
* @param notes_ref OID reference to update (optional); defaults to "refs/notes/commits"
* @param notes_ref canonical name of the reference to use (optional);
* @param oid The OID of the object
* defaults to "refs/notes/commits"
* @param note The note to add for object oid
* @param oid OID of the git object to decorate
* @param note Content of the note to add for object oid
*
*
* @return 0 or an error code
* @return 0 or an error code
*/
*/
...
@@ -73,11 +74,12 @@ GIT_EXTERN(int) git_note_create(git_oid *out, git_repository *repo,
...
@@ -73,11 +74,12 @@ GIT_EXTERN(int) git_note_create(git_oid *out, git_repository *repo,
/**
/**
* Remove the note for an object
* Remove the note for an object
*
*
* @param repo the Git repository
* @param repo repository where the note lives
* @param notes_ref OID reference to use (optional); defaults to "refs/notes/commits"
* @param notes_ref canonical name of the reference to use (optional);
* defaults to "refs/notes/commits"
* @param author signature of the notes commit author
* @param author signature of the notes commit author
* @param committer signature of the notes commit committer
* @param committer signature of the notes commit committer
* @param oid
The
OID of the git object to remove the note from
* @param oid OID of the git object to remove the note from
*
*
* @return 0 or an error code
* @return 0 or an error code
*/
*/
...
...
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