Commit 14ebe518320b0306b04d256d0f5230de32c3f8b3

Carlos Martín Nieto 2012-06-12T15:23:00

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/include/git2/refspec.h b/include/git2/refspec.h
index 1100e90..9e84aad 100644
--- a/include/git2/refspec.h
+++ b/include/git2/refspec.h
@@ -20,6 +20,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
  *
  * @param refspec the refspec