diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-05-30 00:27:22 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-05-30 01:05:17 +0200 |
commit | d05e2c64dd93da7219c9ebca18c2f3b8478ca93a (patch) | |
tree | dcb6e7f324084e08e812ce96272ee5985fe94514 /include/git2 | |
parent | 1835c51f58a670e23c9546f942259d53fe626fa2 (diff) | |
download | libgit2-d05e2c64dd93da7219c9ebca18c2f3b8478ca93a.tar.gz |
refspec: expose the force update specifier through git_refspec_force() accessor
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/refspec.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/refspec.h b/include/git2/refspec.h index c0a8eabfe..1100e9022 100644 --- a/include/git2/refspec.h +++ b/include/git2/refspec.h @@ -36,6 +36,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 force update setting + * + * @param refspec the refspec + * @return 1 if force update has been set, 0 otherwise + */ +GIT_EXTERN(int) git_refspec_force(const git_refspec *refspec); + +/** * Check if a refspec's source descriptor matches a reference * * @param refspec the refspec |