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 /include/git2 | |
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 'include/git2')
-rw-r--r-- | include/git2/remote.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index ecd597518..9327320b4 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -313,6 +313,11 @@ struct git_remote_callbacks { */ GIT_EXTERN(void) git_remote_set_callbacks(git_remote *remote, git_remote_callbacks *callbacks); +/** + * Get the statistics structure that is filled in by the fetch operation. + */ +GIT_EXTERN(const git_indexer_stats *) git_remote_stats(git_remote *remote); + enum { GIT_REMOTE_DOWNLOAD_TAGS_UNSET, GIT_REMOTE_DOWNLOAD_TAGS_NONE, |