diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-05-02 19:56:38 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-05-02 19:56:38 -0700 |
commit | 3fbcac89c47cb66ea193f66da6d93d1c36ed0f5e (patch) | |
tree | 1774677db7e5f0e33c3ab3967d64e2c95a631a5e /include/git2/refspec.h | |
parent | b02bcd97f80beabc96cd1f861bfc3b5f7532ef8b (diff) | |
download | libgit2-3fbcac89c47cb66ea193f66da6d93d1c36ed0f5e.tar.gz |
Remove old and unused error codes
Diffstat (limited to 'include/git2/refspec.h')
-rw-r--r-- | include/git2/refspec.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/git2/refspec.h b/include/git2/refspec.h index 3acf1143d..28afe652d 100644 --- a/include/git2/refspec.h +++ b/include/git2/refspec.h @@ -7,6 +7,7 @@ #ifndef INCLUDE_git_refspec_h__ #define INCLUDE_git_refspec_h__ +#include "common.h" #include "types.h" /** @@ -35,14 +36,13 @@ const char *git_refspec_src(const git_refspec *refspec); const char *git_refspec_dst(const git_refspec *refspec); /** - * Match a refspec's source descriptor with a reference name + * Check if a refspec's source descriptor matches a reference * * @param refspec the refspec * @param refname the name of the reference to check - * @return GIT_SUCCESS on successful match; GIT_ENOMACH on match - * failure or an error code on other failure + * @return 1 if the refspec matches, 0 otherwise */ -int git_refspec_src_match(const git_refspec *refspec, const char *refname); +int git_refspec_src_matches(const git_refspec *refspec, const char *refname); /** * Transform a reference to its target following the refspec's rules |