From 14ebe518320b0306b04d256d0f5230de32c3f8b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Tue, 12 Jun 2012 15:23:00 +0200 Subject: [PATCH] Expose git_refspec_parse() This function has been available for some time, but never in a header. Expose it so we can use it from outside the library. --- include/git2/refspec.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/git2/refspec.h b/include/git2/refspec.h index 1100e9022..9e84aad99 100644 --- a/include/git2/refspec.h +++ b/include/git2/refspec.h @@ -19,6 +19,14 @@ */ GIT_BEGIN_DECL +/** + * Parse a refspec string and create a refspec object + * + * @param refspec pointer to the refspec structure to be used + * @param str the refspec as a string + */ +GIT_EXTERN(int) git_refspec_parse(git_refspec *refspec, const char *str); + /** * Get the source specifier *