summaryrefslogtreecommitdiff
path: root/src/refspec.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2012-11-01 15:47:18 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2012-11-11 11:56:33 -0600
commitb0f6e45d149c033c9fe41d49af2a87d169d11f40 (patch)
tree7cc89f19d1ddbe8ded27944756eccc51f57b8205 /src/refspec.c
parentd18713fb4ad1ba3d18a75272e1c1c3eb45715aba (diff)
downloadlibgit2-b0f6e45d149c033c9fe41d49af2a87d169d11f40.tar.gz
create FETCH_HEAD specially instead of as a ref file
Diffstat (limited to 'src/refspec.c')
-rw-r--r--src/refspec.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/refspec.c b/src/refspec.c
index 8b69e9d8e..4d9915b7a 100644
--- a/src/refspec.c
+++ b/src/refspec.c
@@ -236,3 +236,10 @@ int git_refspec__serialize(git_buf *out, const git_refspec *refspec)
return git_buf_oom(out) == false;
}
+
+int git_refspec_is_wildcard(const git_refspec *spec)
+{
+ assert(spec && spec->src);
+
+ return (spec->src[strlen(spec->src) - 1] == '*');
+}