mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Some documentation improvements
This commit is contained in:
@@ -24,17 +24,24 @@ GIT_BEGIN_DECL
|
||||
/**
|
||||
* Lookup a commit object from a repository.
|
||||
*
|
||||
* The returned object should be released with `git_commit_free` when no
|
||||
* longer needed.
|
||||
*
|
||||
* @param commit pointer to the looked up commit
|
||||
* @param repo the repo to use when locating the commit.
|
||||
* @param id identity of the commit to locate. If the object is
|
||||
* an annotated tag it will be peeled back to the commit.
|
||||
* @return 0 or an error code
|
||||
*/
|
||||
GIT_EXTERN(int) git_commit_lookup(git_commit **commit, git_repository *repo, const git_oid *id);
|
||||
GIT_EXTERN(int) git_commit_lookup(
|
||||
git_commit **commit, git_repository *repo, const git_oid *id);
|
||||
|
||||
/**
|
||||
* Lookup a commit object from a repository,
|
||||
* given a prefix of its identifier (short id).
|
||||
* Lookup a commit object from a repository, given a prefix of its
|
||||
* identifier (short id).
|
||||
*
|
||||
* The returned object should be released with `git_commit_free` when no
|
||||
* longer needed.
|
||||
*
|
||||
* @see git_object_lookup_prefix
|
||||
*
|
||||
@@ -45,7 +52,8 @@ GIT_EXTERN(int) git_commit_lookup(git_commit **commit, git_repository *repo, con
|
||||
* @param len the length of the short identifier
|
||||
* @return 0 or an error code
|
||||
*/
|
||||
GIT_EXTERN(int) git_commit_lookup_prefix(git_commit **commit, git_repository *repo, const git_oid *id, size_t len);
|
||||
GIT_EXTERN(int) git_commit_lookup_prefix(
|
||||
git_commit **commit, git_repository *repo, const git_oid *id, size_t len);
|
||||
|
||||
/**
|
||||
* Close an open commit
|
||||
|
||||
Reference in New Issue
Block a user