diff options
author | Ben Straub <bs@github.com> | 2013-04-15 13:29:40 -0700 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2013-04-15 13:29:40 -0700 |
commit | 201566539f38874b4e93c6a36593bd0d10e6352c (patch) | |
tree | b7475fa99d7d170096f8c771cb9cc0836be819b4 | |
parent | 5961d5ea7f77cc442ec7d7c9f698f8c96c050298 (diff) | |
download | libgit2-201566539f38874b4e93c6a36593bd0d10e6352c.tar.gz |
Clean up minor details
-rw-r--r-- | examples/diff.c | 2 | ||||
-rw-r--r-- | include/git2/revparse.h | 4 | ||||
-rw-r--r-- | include/git2/revwalk.h | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/examples/diff.c b/examples/diff.c index a977abd3f..2ef405665 100644 --- a/examples/diff.c +++ b/examples/diff.c @@ -17,7 +17,7 @@ static int resolve_to_tree( int err = 0; git_object *obj = NULL; - if ((err =git_revparse(&obj, NULL, NULL, repo, identifier)) < 0) + if ((err = git_revparse_single(&obj, repo, identifier)) < 0) return err; switch (git_object_type(obj)) { diff --git a/include/git2/revparse.h b/include/git2/revparse.h index 4f8c274a4..a992d2c48 100644 --- a/include/git2/revparse.h +++ b/include/git2/revparse.h @@ -21,7 +21,6 @@ GIT_BEGIN_DECL /** - * * Find a single object, as specified by a revision string. See `man gitrevisions`, * or http://git-scm.com/docs/git-rev-parse.html#_specifying_revisions for * information on the syntax accepted. @@ -31,8 +30,7 @@ GIT_BEGIN_DECL * @param spec the textual specification for an object * @return 0 on success, GIT_ENOTFOUND, GIT_EAMBIGUOUS, GIT_EINVALIDSPEC or an error code */ -GIT_EXTERN(int) git_revparse_single(git_object **out, git_repository *repo, - const char *spec); +GIT_EXTERN(int) git_revparse_single(git_object **out, git_repository *repo, const char *spec); /** diff --git a/include/git2/revwalk.h b/include/git2/revwalk.h index c9f7372e9..8bfe0b502 100644 --- a/include/git2/revwalk.h +++ b/include/git2/revwalk.h @@ -221,7 +221,7 @@ GIT_EXTERN(void) git_revwalk_sorting(git_revwalk *walk, unsigned int sort_mode); * * The range should be of the form * <commit>..<commit> - * where each <commit> is in the form accepted by 'git_revparse'. + * where each <commit> is in the form accepted by 'git_revparse_single'. * The left-hand commit will be hidden and the right-hand commit pushed. * * @param walk the walker being used for the traversal |