diff options
Diffstat (limited to 'include/git2/refspec.h')
-rw-r--r-- | include/git2/refspec.h | 9 |
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 |