diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-05-18 13:53:38 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-05-18 13:53:38 -0700 |
commit | 59d91979d87b8d355696a943f562eb326cee6c38 (patch) | |
tree | 4b76f8371ecb965d3d40423166c73e22db19e272 /examples/general.c | |
parent | 498b72eb6fdc8b34c1d52b6bb09ba8a198f86666 (diff) | |
parent | 904b67e69fa15b7a3246e43b3d78645ffa2331f6 (diff) | |
download | libgit2-59d91979d87b8d355696a943f562eb326cee6c38.tar.gz |
Merge pull request #710 from libgit2/breaking-changes
Break everything before the release
Diffstat (limited to 'examples/general.c')
-rw-r--r-- | examples/general.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/general.c b/examples/general.c index 46f2009bc..4585a4af5 100644 --- a/examples/general.c +++ b/examples/general.c @@ -335,7 +335,7 @@ int main (int argc, char** argv) // We can then lookup and parse the commited pointed at by the returned OID; // note that this operation is specially fast since the raw contents of the commit object will // be cached in memory - while ((git_revwalk_next(&oid, walk)) == GIT_SUCCESS) { + while ((git_revwalk_next(&oid, walk)) == 0) { error = git_commit_lookup(&wcommit, repo, &oid); cmsg = git_commit_message(wcommit); cauth = git_commit_author(wcommit); |