diff options
| author | Vicent Marti <tanoku@gmail.com> | 2012-08-27 14:54:52 -0700 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2012-08-27 14:54:52 -0700 |
| commit | 62eafd0620eff3d7ca3659a3f4a4808488f0b2c3 (patch) | |
| tree | c0f29b20a9e8194ccfb0ea59ad55b56bed803206 /include/git2/refs.h | |
| parent | bd2887a5e5d823b2fc9debef245bcd865ba3dd83 (diff) | |
| parent | 1c947daa80dfa442acbf8119530a3dcbf5af00c5 (diff) | |
| download | libgit2-62eafd0620eff3d7ca3659a3f4a4808488f0b2c3.tar.gz | |
Merge branch 'branch-delete-ref' into development
Conflicts:
include/git2/refs.h
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 6a8513b3d..660b48b5f 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); + enum { GIT_REF_FORMAT_NORMAL = 0, |
