The default FetchCallbacks implementation.
More...
#include <DefaultFetchCallbacks.h>
|
|
| DefaultFetchCallbacks () |
| | Construct DefaultFetchCallbacks.
|
| virtual void | checkoutProgress (std::string_view path, size_t completedSteps, size_t totalSteps) override |
| | Called for each path in the tree.
|
| virtual int | credentials (git_credential **out, std::string_view url, std::optional< std::string_view > usernameFromUrl, unsigned int allowedTypes) override |
| | Fill in credentials.
|
| virtual int | packProgress (int stage, uint32_t current, uint32_t total) override |
| | Called many times when packing objects.
|
| virtual int | sidebandProgress (std::string_view str) override |
| | Callback for messages received by the transport.
|
| virtual int | transferProgress (const git_indexer_progress &stats) override |
| | Called many times during download and indexing.
|
| virtual int | updateRefs (std::string_view refname, const git_oid &a, const git_oid &b, git_refspec &) override |
| | Called for each updated reference.
|
|
| FetchCallbacks () |
| | Construct FetchCallbacks.
|
The default FetchCallbacks implementation.
◆ checkoutProgress()
| virtual void SlGit::DefaultFetchCallbacks::checkoutProgress |
( |
std::string_view | path, |
|
|
size_t | completedSteps, |
|
|
size_t | totalSteps ) |
|
overridevirtual |
Called for each path in the tree.
- Parameters
-
| path | Path being checked out |
| completedSteps | Count of steps done |
| totalSteps | Count of all steps |
Reimplemented from SlGit::FetchCallbacks.
◆ credentials()
| virtual int SlGit::DefaultFetchCallbacks::credentials |
( |
git_credential ** | cred, |
|
|
std::string_view | url, |
|
|
std::optional< std::string_view > | usernameFromUrl, |
|
|
unsigned int | allowedTypes ) |
|
overridevirtual |
Fill in credentials.
- Parameters
-
| cred | Output |
| url | For which URL |
| usernameFromUrl | Username detected in url |
| allowedTypes | GIT_CREDENTIAL_USERNAME, GIT_CREDENTIAL_SSH_KEY, ... |
- Returns
- Zero for success.
Reimplemented from SlGit::FetchCallbacks.
◆ packProgress()
| virtual int SlGit::DefaultFetchCallbacks::packProgress |
( |
int | stage, |
|
|
uint32_t | current, |
|
|
uint32_t | total ) |
|
overridevirtual |
Called many times when packing objects.
- Parameters
-
| stage | At what stage the packing is (GIT_PACKBUILDER_ADDING_OBJECTS, ...) |
| current | Currently packed object |
| total | Total number of objects |
- Returns
- Zero for success.
Reimplemented from SlGit::FetchCallbacks.
◆ sidebandProgress()
| virtual int SlGit::DefaultFetchCallbacks::sidebandProgress |
( |
std::string_view | str | ) |
|
|
overridevirtual |
Callback for messages received by the transport.
- Parameters
-
| str | The message from the transport |
- Returns
- Zero for success.
Reimplemented from SlGit::FetchCallbacks.
◆ transferProgress()
| virtual int SlGit::DefaultFetchCallbacks::transferProgress |
( |
const git_indexer_progress & | stats | ) |
|
|
overridevirtual |
Called many times during download and indexing.
- Parameters
-
- Returns
- Zero for success.
Reimplemented from SlGit::FetchCallbacks.
◆ updateRefs()
| virtual int SlGit::DefaultFetchCallbacks::updateRefs |
( |
std::string_view | refname, |
|
|
const git_oid & | a, |
|
|
const git_oid & | b, |
|
|
git_refspec & | ref ) |
|
overridevirtual |
Called for each updated reference.
- Parameters
-
| refname | The name of the reference |
| a | The original OID |
| b | The new OID |
| ref | The reference structure |
- Returns
- Zero for success.
Reimplemented from SlGit::FetchCallbacks.
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/slhelpers-20260428.f233ce9-build/slhelpers-20260428.f233ce9/include/git/DefaultFetchCallbacks.h