diff options
author | Vicent Martà <vicent@github.com> | 2013-04-30 03:29:48 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-04-30 03:29:48 -0700 |
commit | d76fb20ebce03b2fd87c2472d556bf9b64894efd (patch) | |
tree | 53ee85c45fce967dc183264ad66ecd78215f323e /src/refspec.c | |
parent | 099c1b747a15d3267dc4be533f08fe8435251708 (diff) | |
parent | 9c5d4b2e807cdbb83cf55868700b0387cd4e8c41 (diff) | |
download | libgit2-d76fb20ebce03b2fd87c2472d556bf9b64894efd.tar.gz |
Merge pull request #1520 from carlosmn/nth-refspec
Add refspec list accessors
Diffstat (limited to 'src/refspec.c')
-rw-r--r-- | src/refspec.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/refspec.c b/src/refspec.c index 256540819..a907df84c 100644 --- a/src/refspec.c +++ b/src/refspec.c @@ -274,3 +274,10 @@ int git_refspec_is_wildcard(const git_refspec *spec) return (spec->src[strlen(spec->src) - 1] == '*'); } + +git_direction git_refspec_direction(const git_refspec *spec) +{ + assert(spec); + + return spec->push; +} |