summaryrefslogtreecommitdiff
path: root/include/git2/oid.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-08-09 19:43:25 -0700
committerRussell Belfer <rb@github.com>2012-08-24 11:00:27 -0700
commit5f4a61aea834fe25ce1596bc9c0e0b5e563aa98b (patch)
treeda0237ee649e009b5f914dfdace54d26e819aaaf /include/git2/oid.h
parent0c8858de8c82bae3fd88513724689a07d231da7e (diff)
downloadlibgit2-5f4a61aea834fe25ce1596bc9c0e0b5e563aa98b.tar.gz
Working implementation of git_submodule_status
This is a big redesign of the git_submodule_status API and the implementation of the redesigned API. It also fixes a number of bugs that I found in other parts of the submodule API while writing the tests for the status part. This also fixes a couple of bugs in the iterators that had not been noticed before - one with iterating when there is a gitlink (i.e. separate-work-dir) and one where I was treating anything even vaguely submodule-like as a submodule, more aggressively than core git does.
Diffstat (limited to 'include/git2/oid.h')
-rw-r--r--include/git2/oid.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/git2/oid.h b/include/git2/oid.h
index 887b33e50..9e54a9f96 100644
--- a/include/git2/oid.h
+++ b/include/git2/oid.h
@@ -185,6 +185,8 @@ GIT_EXTERN(int) git_oid_streq(const git_oid *a, const char *str);
/**
* Check is an oid is all zeros.
+ *
+ * @return 1 if all zeros, 0 otherwise.
*/
GIT_EXTERN(int) git_oid_iszero(const git_oid *a);