diff options
author | Russell Belfer <rb@github.com> | 2012-11-29 17:02:27 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-11-29 17:02:27 -0800 |
commit | d5e44d84983ba199a62ec67f823312584339fae3 (patch) | |
tree | c9c1cd5c6ef12dd4ccd40f274f17a3bf4d077e52 /src/revwalk.c | |
parent | b994bfe3398d797ff8e8bb538eec41602d5e360a (diff) | |
download | libgit2-d5e44d84983ba199a62ec67f823312584339fae3.tar.gz |
Fix function name and add real error check
`revwalk.h:commit_lookup()` -> `git_revwalk__commit_lookup()`
and make `git_commit_list_parse()` do real error checking that
the item in the list is an actual commit object. Also fixed an
apparent typo in a test name.
Diffstat (limited to 'src/revwalk.c')
-rw-r--r-- | src/revwalk.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/revwalk.c b/src/revwalk.c index bdbbdbd17..cad2f09bd 100644 --- a/src/revwalk.c +++ b/src/revwalk.c @@ -15,7 +15,8 @@ #include <regex.h> -git_commit_list_node *commit_lookup(git_revwalk *walk, const git_oid *oid) +git_commit_list_node *git_revwalk__commit_lookup( + git_revwalk *walk, const git_oid *oid) { git_commit_list_node *commit; khiter_t pos; @@ -101,7 +102,7 @@ static int push_commit(git_revwalk *walk, const git_oid *oid, int uninteresting) return -1; } - commit = commit_lookup(walk, oid); + commit = git_revwalk__commit_lookup(walk, oid); if (commit == NULL) return -1; /* error already reported by failed lookup */ |