KiCad PCB EDA Suite
Loading...
Searching...
No Matches
git_credentials_prompt.h File Reference
#include <git/git_config_handler.h>
#include <git/kigit_known_hosts.h>
#include <settings/common_settings.h>
#include <memory>
#include <optional>
#include <wx/string.h>

Go to the source code of this file.

Classes

struct  KIGIT::TRANSFER_FAILURE
 Why a transfer to a remote failed. More...
 
struct  KIGIT::GIT_IDENTITY
 Repository values and whether Git can use them to record a commit. More...
 

Namespaces

namespace  KIGIT
 

Enumerations

enum class  KIGIT::PROMPT_ANSWER { KIGIT::ACCEPTED , KIGIT::DECLINED , KIGIT::ABANDONED }
 
enum class  KIGIT::TRANSFER_RETRY {
  KIGIT::RETRY , KIGIT::RETRY_TRUSTED , KIGIT::CANCELLED , KIGIT::HOST_DECLINED ,
  KIGIT::GONE , KIGIT::REPORT
}
 What a window does after AnswerTransferFailure. More...
 

Functions

PROMPT_ANSWER KIGIT::PromptForCredentials (wxWindow *aParent, KIGIT_COMMON *aCommon, PROJECT *aProject=nullptr, const wxString &aExplanation=wxEmptyString)
 Ask the user for the credentials of the session's remote and apply them to the session.
 
PROMPT_ANSWER KIGIT::PromptToTrustHost (wxWindow *aParent, const HOST_KEY_FAILURE &aFailure, bool aRetriedAfterTrust)
 Ask whether to trust a server seen for the first time, and remember its key when the user agrees.
 
TRANSFER_RETRY KIGIT::AnswerTransferFailure (wxWindow *aParent, const std::weak_ptr< bool > &aAlive, KIGIT_COMMON *aCommon, PROJECT *aProject, const TRANSFER_FAILURE &aFailure, bool aRetriedAfterTrust, int &aPrompts)
 Answer a failed transfer the way every window does.
 
void KIGIT::ClearSyncWarnings (wxWindow *aWindow)
 Clear the background fetch's warnings from the frame holding aWindow.
 
void KIGIT::ClearSyncWarnings (const KIGIT_COMMON *aCommon)
 A transfer that reached the remote answers the background fetch's warnings, so they go from every frame open on the project whose session aCommon is.
 
GIT_IDENTITY KIGIT::ReadGitIdentity (KIGIT_COMMON &aCommon)
 Read on a worker while holding the session's action lock.
 
GitUserConfig KIGIT::ResolveGitIdentity (const GIT_IDENTITY &aIdentity, const COMMON_SETTINGS::GIT &aPreferences, const wxString &aUserName)
 Fill missing values from custom preferences, then use the OS user name if needed.
 
bool KIGIT::EditGitIdentity (wxWindow *aParent, EDA_BASE_FRAME *aFrame, const std::shared_ptr< KIGIT_COMMON > &aCommon, const GIT_IDENTITY &aIdentity)
 Edit the repository's author and refresh Git views after saving.
 
bool KIGIT::EnsureGitIdentity (wxWindow *aParent, EDA_BASE_FRAME *aFrame, const std::shared_ptr< KIGIT_COMMON > &aCommon, const GIT_IDENTITY &aIdentity)
 Open the same editor when the worker snapshot has no usable Git identity.
 

Variables

constexpr int KIGIT::MAX_CREDENTIAL_PROMPTS = 3
 Keyring reads and credential prompts that may follow a request's failures before one is reported instead.
 
constexpr const wxChar * KIGIT::SYNC_WARNING_SOURCE = wxS( "git" )
 The status bar source under which background fetch failures are listed.