diff options
| author | Brad Morgan <brad@dmgctrl.com> | 2013-05-07 14:30:35 -0400 |
|---|---|---|
| committer | Brad Morgan <brad@dmgctrl.com> | 2013-05-07 14:30:35 -0400 |
| commit | 00e43380a0beee3ac40935c45d4aa67fbfc27fbb (patch) | |
| tree | 6b9c959fa74694fb0f1841d9669dfc6221ff4277 /include/git2/refspec.h | |
| parent | 7369b3c3bf396e466d065f9921415fe2b9d69a7a (diff) | |
| parent | 42b2bcf038b4e45df33a1078dd05a95759addd35 (diff) | |
| download | libgit2-00e43380a0beee3ac40935c45d4aa67fbfc27fbb.tar.gz | |
Merge remote-tracking branch 'origin/development' into ssh_transport
Diffstat (limited to 'include/git2/refspec.h')
| -rw-r--r-- | include/git2/refspec.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/git2/refspec.h b/include/git2/refspec.h index ec7830b7c..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 @@ -36,6 +37,14 @@ GIT_EXTERN(const char *) git_refspec_src(const git_refspec *refspec); GIT_EXTERN(const char *) git_refspec_dst(const git_refspec *refspec); /** + * Get the refspec's string + * + * @param refspec the refspec + * @returns the refspec's original string + */ +GIT_EXTERN(const char *) git_refspec_string(const git_refspec *refspec); + +/** * Get the force update setting * * @param refspec the refspec @@ -44,6 +53,14 @@ GIT_EXTERN(const char *) git_refspec_dst(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 |
