summaryrefslogtreecommitdiff
path: root/include/git2/refspec.h
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-04-30 03:29:48 -0700
committerVicent Martí <vicent@github.com>2013-04-30 03:29:48 -0700
commitd76fb20ebce03b2fd87c2472d556bf9b64894efd (patch)
tree53ee85c45fce967dc183264ad66ecd78215f323e /include/git2/refspec.h
parent099c1b747a15d3267dc4be533f08fe8435251708 (diff)
parent9c5d4b2e807cdbb83cf55868700b0387cd4e8c41 (diff)
downloadlibgit2-d76fb20ebce03b2fd87c2472d556bf9b64894efd.tar.gz
Merge pull request #1520 from carlosmn/nth-refspec
Add refspec list accessors
Diffstat (limited to 'include/git2/refspec.h')
-rw-r--r--include/git2/refspec.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/git2/refspec.h b/include/git2/refspec.h
index 3e1b502ef..c0b410cbf 100644
--- a/include/git2/refspec.h
+++ b/include/git2/refspec.h
@@ -9,6 +9,7 @@
#include "common.h"
#include "types.h"
+#include "net.h"
/**
* @file git2/refspec.h
@@ -52,6 +53,14 @@ GIT_EXTERN(const char *) git_refspec_string(const git_refspec *refspec);
GIT_EXTERN(int) git_refspec_force(const git_refspec *refspec);
/**
+ * Get the refspec's direction.
+ *
+ * @param the refspec
+ * @return GIT_DIRECTION_FETCH or GIT_DIRECTION_PUSH
+ */
+GIT_EXTERN(git_direction) git_refspec_direction(const git_refspec *spec);
+
+/**
* Check if a refspec's source descriptor matches a reference
*
* @param refspec the refspec