diff options
| author | Ben Straub <bs@github.com> | 2012-10-16 13:29:12 -0700 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2012-10-19 19:34:15 -0700 |
| commit | d57c47dc07044b4fd3f5e9d57615329692823111 (patch) | |
| tree | 4148ff7f84ad40973a6414c29a41259c5f151010 /src/remote.c | |
| parent | 3028be0723f42f31b1973da9f19f2b0468b11754 (diff) | |
| download | libgit2-d57c47dc07044b4fd3f5e9d57615329692823111.tar.gz | |
Add accessor for git_remote's stats field
Also converted the network example to use it.
Diffstat (limited to 'src/remote.c')
| -rw-r--r-- | src/remote.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/remote.c b/src/remote.c index 82ab22f4a..4b4044196 100644 --- a/src/remote.c +++ b/src/remote.c @@ -703,6 +703,12 @@ void git_remote_set_callbacks(git_remote *remote, git_remote_callbacks *callback } } +inline const git_indexer_stats* git_remote_stats(git_remote *remote) +{ + assert(remote); + return &remote->stats; +} + int git_remote_autotag(git_remote *remote) { return remote->download_tags; |
