summaryrefslogtreecommitdiff
path: root/include/git2/indexer.h
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-02-05 12:03:41 -0800
committerBen Straub <bs@github.com>2013-02-05 12:06:14 -0800
commitb71bac9d2b1a3c4b87fdc808b13d9cd4b70ea978 (patch)
tree9697d911547795764821611df5fcc4b663ade364 /include/git2/indexer.h
parentfe95ac1b6750a29d4a132d265ec1d050f49b69e8 (diff)
downloadlibgit2-b71bac9d2b1a3c4b87fdc808b13d9cd4b70ea978.tar.gz
Document callback-triggered cancellation
Diffstat (limited to 'include/git2/indexer.h')
-rw-r--r--include/git2/indexer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/git2/indexer.h b/include/git2/indexer.h
index 0e62835ce..151f5b4e7 100644
--- a/include/git2/indexer.h
+++ b/include/git2/indexer.h
@@ -25,7 +25,11 @@ typedef struct git_transfer_progress {
/**
- * Type for progress callbacks during indexing
+ * Type for progress callbacks during indexing. Return a value less than zero
+ * to cancel the transfer.
+ *
+ * @param stats Structure containing information about the state of the transfer
+ * @param payload Payload provided by caller
*/
typedef int (*git_transfer_progress_callback)(const git_transfer_progress *stats, void *payload);