diff options
author | Vicent Marti <tanoku@gmail.com> | 2012-08-23 15:47:29 -0700 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2012-08-26 18:00:10 -0700 |
commit | 1c947daa80dfa442acbf8119530a3dcbf5af00c5 (patch) | |
tree | bf790b63a2af10cc715d92f202ff7bbe133d071b /include/git2/refs.h | |
parent | 17f7bde2f730723f6edae66b454afba481595bb0 (diff) | |
download | libgit2-branch-delete-ref.tar.gz |
branch: Change `git_branch_delete` to take a refbranch-delete-ref
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 9e7060075..975da553d 100644 --- a/include/git2/refs.h +++ b/include/git2/refs.h @@ -376,6 +376,16 @@ GIT_EXTERN(int) git_reference_has_log(git_reference *ref); */ GIT_EXTERN(int) git_reference_is_branch(git_reference *ref); +/** + * Check if a reference is a remote tracking branch + * + * @param ref A git reference + * + * @return 1 when the reference lives in the refs/remotes + * namespace; 0 otherwise. + */ +GIT_EXTERN(int) git_reference_is_remote(git_reference *ref); + /** @} */ GIT_END_DECL #endif |