diff options
Diffstat (limited to 'src/refs.c')
-rw-r--r-- | src/refs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/refs.c b/src/refs.c index cf55a6fd5..f153a30fd 100644 --- a/src/refs.c +++ b/src/refs.c @@ -1804,6 +1804,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; +} |