Commit ca909da5dd92d4bfddf151852f029e74c4ef8a48

Edward Thomson 2019-02-21T11:45:23

remote: deprecate git_push_transfer_progress Safely deprecate `git_push_transfer_progress`, forwarding it to the new `git_push_transfer_progress_cb` name.

diff --git a/include/git2/deprecated.h b/include/git2/deprecated.h
index 3777c0e..ca8a23c 100644
--- a/include/git2/deprecated.h
+++ b/include/git2/deprecated.h
@@ -13,6 +13,7 @@
 #include "index.h"
 #include "object.h"
 #include "refs.h"
+#include "remote.h"
 
 /*
  * Users can avoid deprecated functions by defining `GIT_DEPRECATE_HARD`.
@@ -272,6 +273,14 @@ typedef git_indexer_progress git_transfer_progress;
  */
 typedef git_indexer_progress_cb git_transfer_progress_cb;
 
+/**
+ * Type definition for push transfer progress callbacks.
+ *
+ * This type is deprecated, but there is no plan to remove this
+ * type definition at this time.
+ */
+typedef git_push_transfer_progress_cb git_push_transfer_progress;
+
 /**@}*/
 
 /** @} */