|
KiCad PCB EDA Suite
|
#include "kicad_git_common.h"#include "kicad_git_memory.h"#include "git_repo_mixin.h"#include "git_backend.h"#include "kigit_ssh_keys.h"#include "project_git_utils.h"#include <git/git_progress.h>#include <git/kicad_git_compat.h>#include <kiplatform/secrets.h>#include <trace_helpers.h>#include <git2.h>#include <wx/arrstr.h>#include <wx/base64.h>#include <wx/ffile.h>#include <wx/filename.h>#include <wx/log.h>#include <wx/utils.h>#include <algorithm>#include <cctype>#include <cerrno>#include <chrono>#include <cstdlib>#include <cstring>#include <map>#include <set>#include <string>#include <thread>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | KIGIT |
Functions | |
| static size_t | findUserinfoAt (const wxString &aUrl) |
| static wxString | decodePercent (const wxString &aText) |
| static int | parsePort (const wxString &aPort) |
| static bool | isScpIpv6 (const wxString &aText, size_t aBracket) |
| static bool | scpHasUser (const wxString &aText, size_t aStart) |
| static bool | parseScpAddress (const wxString &aURL, wxString &aUser, wxString &aHost, wxString &aPort) |
| int | fetchhead_foreach_cb (const char *, const char *, const git_oid *aOID, unsigned int aIsMerge, void *aPayload) |
| bool | KIGIT::IsPrivateKeyEncrypted (const wxString &aKeyText) |
| Report whether an SSH private key is protected by a passphrase. | |
| bool | KIGIT::IsPrivateKeyFileEncrypted (const wxString &aKey) |
IsPrivateKeyEncrypted for the key file aKey. A file that cannot be read is reported as unencrypted. | |
| wxString | KIGIT::ConfiguredSSHCommand (git_repository *aRepo) |
git's core.sshCommand for aRepo, or from the user's git config when aRepo is null. Empty when unset. | |
| git_tree * | KIGIT::ResolveRefToTree (git_repository *aRepo, const wxString &aRef) |
| Resolve a string ref (branch name, short OID, full OID, tag) to its tree. | |
| std::vector< wxString > | KIGIT::CompareBranchRefs (git_repository *aRepo) |
| Refs to offer when comparing branches, base first and head second. | |
| void | KIGIT::CollectDiffDeltas (git_diff *aDiff, const std::function< void(const git_diff_delta &)> &aCallback) |
Walk every delta in a computed diff, invoking aCallback once per delta. | |
| wxString | KIGIT::BranchNameError (const wxString &aName) |
| Empty when aName is a branch name git would accept, otherwise why it would not, in the words to show the user. | |
| wxString | KIGIT::DecodeRepoText (const char *aText) |
| Decode text that came out of a repository. | |
| wxString | KIGIT::BusyMessage () |
| What every caller says when it finds the session already busy. | |
| wxString | KIGIT::ComposeCommitMessage (const wxString &aSummary, const wxString &aDescription, const wxString &aSignOff) |
| Join a summary line, an optional description and an optional sign-off into one commit message. | |
| void | KIGIT::SplitCommitMessage (const wxString &aMessage, wxString &aSummary, wxString &aDescription) |
| Split a commit message into its first line and the description after the first blank line. | |
|
static |
Definition at line 2293 of file kicad_git_common.cpp.
References decoded(), result, and text.
Referenced by KIGIT_COMMON::ParseRemoteURL().
| int fetchhead_foreach_cb | ( | const char * | , |
| const char * | , | ||
| const git_oid * | aOID, | ||
| unsigned int | aIsMerge, | ||
| void * | aPayload ) |
Definition at line 2650 of file kicad_git_common.cpp.
Referenced by LIBGIT_BACKEND::PerformPull().
|
static |
Definition at line 2244 of file kicad_git_common.cpp.
Referenced by KIGIT_COMMON::ParseRemoteURL().
|
static |
Definition at line 2334 of file kicad_git_common.cpp.
Referenced by parseScpAddress().
|
static |
Definition at line 2320 of file kicad_git_common.cpp.
Referenced by KIGIT_COMMON::ParseRemoteURL().
|
static |
Definition at line 2372 of file kicad_git_common.cpp.
References isScpIpv6(), NONE, PORT, scpHasUser(), and USER.
Referenced by KIGIT_COMMON::ParseRemoteURL().
|
static |
Definition at line 2356 of file kicad_git_common.cpp.
Referenced by parseScpAddress().