diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-04-20 19:13:47 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-04-20 19:45:40 +0200 |
commit | 1be680c4d0909ee5160292d7b56c4522c4bc309c (patch) | |
tree | 605d1eeee4933f727219d8c8d7fd8fd23a09c133 /include/git2/refspec.h | |
parent | bc6374eac485ab9ad9cfd7165b6d071c3dcb673a (diff) | |
download | libgit2-1be680c4d0909ee5160292d7b56c4522c4bc309c.tar.gz |
refspec: unify the string and parsed data
It used to be separate as an attempt to make the querying easier, but
it didn't work out that way, so put all the data together.
Add git_refspec_string() as well to get the original string, which is
now stored alongside the independent parts.
Diffstat (limited to 'include/git2/refspec.h')
-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 ec7830b7c..3e1b502ef 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 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 |