KiCad PCB EDA Suite
Loading...
Searching...
No Matches
kigit_failure.cpp File Reference
#include "kigit_failure.h"
#include "git_repo_mixin.h"
#include "kicad_git_compat.h"
#include "kicad_git_memory.h"
#include <trace_helpers.h>
#include <git2.h>
#include <wx/ffile.h>
#include <wx/filename.h>
#include <wx/log.h>
#include <wx/regex.h>
#include <wx/tokenzr.h>
#include <wx/translation.h>
#include <cstdlib>
#include <memory>

Go to the source code of this file.

Functions

static KIGIT_FAILURE classifyGitFailure (const KIGIT_ERROR_INFO &aError, const KIGIT_AUTH_ATTEMPT &aAuth, const KIGIT_FAILURE_CONTEXT &aContext)
 
static wxFileName resolveLikeLibgit2 (const wxString &aDir)
 aDir spelled as libgit2 1.9's p_realpath spells the working folder it checks safe.directory against
 
static wxString quoteForShell (const wxString &aPath)
 aPath quoted for the shell the trust command is pasted into, or empty when it cannot be done safely
 
static bool isRootedLikeLibgit2 (const wxString &aPath)
 True when libgit2's git_fs_path_root takes aPath as rooted rather than joining it onto a base folder.
 

Function Documentation

◆ classifyGitFailure()

◆ isRootedLikeLibgit2()

static bool isRootedLikeLibgit2 ( const wxString & aPath)
static

True when libgit2's git_fs_path_root takes aPath as rooted rather than joining it onto a base folder.

Definition at line 568 of file kigit_failure.cpp.

Referenced by KIGIT::DescribeOwnershipRefusal().

◆ quoteForShell()

static wxString quoteForShell ( const wxString & aPath)
static

aPath quoted for the shell the trust command is pasted into, or empty when it cannot be done safely

Definition at line 545 of file kigit_failure.cpp.

Referenced by KIGIT::DescribeOwnershipRefusal().

◆ resolveLikeLibgit2()

static wxFileName resolveLikeLibgit2 ( const wxString & aDir)
static

aDir spelled as libgit2 1.9's p_realpath spells the working folder it checks safe.directory against

Definition at line 530 of file kigit_failure.cpp.

Referenced by KIGIT::DescribeOwnershipRefusal().