5#include "../helpers/Ratelimit.h"
6#include "../helpers/SSH.h"
8#include "FetchCallbacks.h"
19 grabbedKeys(false) { }
22 size_t totalSteps)
override;
24 virtual int credentials(git_credential **out, std::string_view url,
25 std::optional<std::string_view> usernameFromUrl,
26 unsigned int allowedTypes)
override;
27 virtual int packProgress(
int stage, uint32_t current, uint32_t total)
override;
30 virtual int updateRefs(std::string_view refname,
const git_oid &a,
const git_oid &b,
31 git_refspec &)
override;
34 void getUserName(std::optional<std::string_view> usernameFromUrl);
35 std::string_view extractHost(std::string_view url);
36 void getKeys(std::string_view url);
42 unsigned int triedKey;
virtual int sidebandProgress(std::string_view str) override
Callback for messages received by the transport.
virtual void checkoutProgress(std::string_view path, size_t completedSteps, size_t totalSteps) override
Called for each path in the tree.
DefaultFetchCallbacks()
Construct DefaultFetchCallbacks.
Definition DefaultFetchCallbacks.h:18
virtual int updateRefs(std::string_view refname, const git_oid &a, const git_oid &b, git_refspec &) override
Called for each updated reference.
virtual int packProgress(int stage, uint32_t current, uint32_t total) override
Called many times when packing objects.
virtual int transferProgress(const git_indexer_progress &stats) override
Called many times during download and indexing.
virtual int credentials(git_credential **out, std::string_view url, std::optional< std::string_view > usernameFromUrl, unsigned int allowedTypes) override
Fill in credentials.
FetchCallbacks()
Construct FetchCallbacks.
Definition FetchCallbacks.h:20
Rate-limit some actions.
Definition Ratelimit.h:12
std::vector< KeyPair > KeyPairs
A list of key pairs.
Definition SSH.h:24