diff options
author | Vicent Martà <vicent@github.com> | 2012-07-11 05:29:51 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2012-07-11 05:29:51 -0700 |
commit | a13a30ac302ede33d8bc4b6b0c283a57f6e8cc2e (patch) | |
tree | e6cfedbe35b0b397ec89ffbdd30ea3903241e1d3 /include/git2/refs.h | |
parent | 6b9a49cd5fd6addc5b9ce3281ea33a50934f5a94 (diff) | |
parent | 3e82d6c6f0783a5c74b79d7a849e9ca319f171b5 (diff) | |
download | libgit2-a13a30ac302ede33d8bc4b6b0c283a57f6e8cc2e.tar.gz |
Merge pull request #801 from nulltoken/fix/ref-renaming
refs and revparse love <3
Diffstat (limited to 'include/git2/refs.h')
-rw-r--r-- | include/git2/refs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/refs.h b/include/git2/refs.h index 2aa0ac267..7f6eb0e9b 100644 --- a/include/git2/refs.h +++ b/include/git2/refs.h @@ -353,6 +353,16 @@ GIT_EXTERN(int) git_reference_foreach_glob( void *payload ); +/** + * Check if a reflog exists for the specified reference. + * + * @param ref A git reference + * + * @return 0 when no reflog can be found, 1 when it exists; + * otherwise an error code. + */ +GIT_EXTERN(int) git_reference_has_log(git_reference *ref); + /** @} */ GIT_END_DECL #endif |