summaryrefslogtreecommitdiff
path: root/include/git2/refspec.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2012-06-12 15:23:00 +0200
committerCarlos Martín Nieto <cmn@elego.de>2012-06-12 15:24:33 +0200
commit14ebe518320b0306b04d256d0f5230de32c3f8b3 (patch)
treecc2a2ebb4a5bf1ba60b03dd192b862a0c88042f3 /include/git2/refspec.h
parentc0734593719c37c7c7c4cbd2c797e41b6276e330 (diff)
downloadlibgit2-14ebe518320b0306b04d256d0f5230de32c3f8b3.tar.gz
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.
Diffstat (limited to 'include/git2/refspec.h')
-rw-r--r--include/git2/refspec.h8
1 files changed, 8 insertions, 0 deletions
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
@@ -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