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/graph.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/graph.c')
| -rw-r--r-- | src/graph.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph.c b/src/graph.c index ff0a8464a..28026d4b4 100644 --- a/src/graph.c +++ b/src/graph.c @@ -58,7 +58,7 @@ int git_graph_ahead_behind(size_t *ahead, size_t *behind, git_repository *repo, if (git_revwalk_new(&walk, repo) < 0) return -1; - commit2 = commit_lookup(walk, two); + commit2 = git_revwalk__commit_lookup(walk, two); if (commit2 == NULL) goto on_error; @@ -68,7 +68,7 @@ int git_graph_ahead_behind(size_t *ahead, size_t *behind, git_repository *repo, list.length = 1; list.contents = contents; - commit1 = commit_lookup(walk, one); + commit1 = git_revwalk__commit_lookup(walk, one); if (commit1 == NULL) goto on_error; |
