diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-04-30 10:55:17 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-04-30 10:55:17 +0200 |
commit | 8d39f2a79067c9551286bb552457db71b88b64d3 (patch) | |
tree | 180092c0a39072878dffe30a1fd5a5460c872ecf /src | |
parent | 4157851076d476b3b7f9a8bb9b85497517b14cdf (diff) | |
download | libgit2-8d39f2a79067c9551286bb552457db71b88b64d3.tar.gz |
refspec: add direction accessor
Diffstat (limited to 'src')
-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; +} |