summaryrefslogtreecommitdiff
path: root/src/refs.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2012-08-27 14:54:52 -0700
committerVicent Marti <tanoku@gmail.com>2012-08-27 14:54:52 -0700
commit62eafd0620eff3d7ca3659a3f4a4808488f0b2c3 (patch)
treec0f29b20a9e8194ccfb0ea59ad55b56bed803206 /src/refs.c
parentbd2887a5e5d823b2fc9debef245bcd865ba3dd83 (diff)
parent1c947daa80dfa442acbf8119530a3dcbf5af00c5 (diff)
downloadlibgit2-62eafd0620eff3d7ca3659a3f4a4808488f0b2c3.tar.gz
Merge branch 'branch-delete-ref' into development
Conflicts: include/git2/refs.h
Diffstat (limited to 'src/refs.c')
-rw-r--r--src/refs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/refs.c b/src/refs.c
index 9fc194cb6..eb8af5863 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -1836,6 +1836,11 @@ int git_reference_has_log(
int git_reference_is_branch(git_reference *ref)
{
assert(ref);
-
return git__prefixcmp(ref->name, GIT_REFS_HEADS_DIR) == 0;
}
+
+int git_reference_is_remote(git_reference *ref)
+{
+ assert(ref);
+ return git__prefixcmp(ref->name, GIT_REFS_REMOTES_DIR) == 0;
+}