KiCad PCB EDA Suite
Loading...
Searching...
No Matches
GIT_IGNORE_SUBDIR_FIXTURE Struct Reference

The project is a folder inside a larger repository, where rules have to be anchored to the project rather than the repository root. More...

Inheritance diagram for GIT_IGNORE_SUBDIR_FIXTURE:
GIT_IGNORE_FIXTURE KI_TEST::GIT_TEST_FIXTURE

Public Member Functions

wxString projectPath () const override
 The project directory, which is where its ignore file belongs.
 
void writeFile (const wxString &aFile, const wxString &aContent)
 
std::map< wxString, FileStatus > reported (KIGIT_COMMON &aCommon, bool aChangedOnly)
 What the status reports, keyed by repository relative path.
 
std::map< wxString, FileStatus > changes (KIGIT_COMMON &aCommon)
 What the commit list offers, which is changes only.
 
std::map< wxString, FileStatus > treeStatus (KIGIT_COMMON &aCommon)
 What the project tree is built from, ignored paths included.
 
wxFileName ignoreFile () const
 
git_repository * repo () const
 
wxString rules () const
 
const wxString & TempPath () const
 
LIBGIT_BACKEND * Backend () const
 

Protected Attributes

KIGIT::GitRepositoryPtr m_repo
 
wxString m_repoPath
 

Static Private Member Functions

static wxString toWxString (const std::filesystem::path &aPath)
 

Private Attributes

SCOPED_GIT_BACKEND m_backend
 
SCOPED_TEMP_DIR m_tempDir
 
SCOPED_TEMP_DIR m_configDir
 
SCOPED_GIT_CONFIG_SEARCH_PATH m_configSearchPath
 
wxString m_originalCwd
 
wxString m_tempPath
 

Detailed Description

The project is a folder inside a larger repository, where rules have to be anchored to the project rather than the repository root.

Definition at line 263 of file test_kigit_ignore.cpp.

Member Function Documentation

◆ Backend()

LIBGIT_BACKEND * KI_TEST::GIT_TEST_FIXTURE::Backend ( ) const
inlineinherited

Definition at line 102 of file git_test_fixture.h.

References m_backend.

◆ changes()

std::map< wxString, FileStatus > GIT_IGNORE_FIXTURE::changes ( KIGIT_COMMON & aCommon)
inlineinherited

What the commit list offers, which is changes only.

Definition at line 84 of file test_kigit_ignore.cpp.

References reported().

◆ ignoreFile()

wxFileName GIT_IGNORE_FIXTURE::ignoreFile ( ) const
inlineinherited

Definition at line 91 of file test_kigit_ignore.cpp.

References KIGIT::ProjectIgnoreFile(), and projectPath().

Referenced by rules().

◆ projectPath()

wxString GIT_IGNORE_SUBDIR_FIXTURE::projectPath ( ) const
inlineoverridevirtual

The project directory, which is where its ignore file belongs.

Reimplemented from GIT_IGNORE_FIXTURE.

Definition at line 265 of file test_kigit_ignore.cpp.

References GIT_IGNORE_FIXTURE::m_repoPath.

◆ repo()

git_repository * GIT_IGNORE_FIXTURE::repo ( ) const
inlineinherited

Definition at line 96 of file test_kigit_ignore.cpp.

References git_repository, and m_repo.

◆ reported()

std::map< wxString, FileStatus > GIT_IGNORE_FIXTURE::reported ( KIGIT_COMMON & aCommon,
bool aChangedOnly )
inlineinherited

What the status reports, keyed by repository relative path.

Definition at line 69 of file test_kigit_ignore.cpp.

References GIT_STATUS_HANDLER::GetFileStatus(), GIT_STATUS_HANDLER::GetWorkingDirectory(), and path.

Referenced by changes(), and treeStatus().

◆ rules()

wxString GIT_IGNORE_FIXTURE::rules ( ) const
inlineinherited

Definition at line 100 of file test_kigit_ignore.cpp.

References BOOST_REQUIRE(), and ignoreFile().

◆ TempPath()

◆ toWxString()

static wxString KI_TEST::GIT_TEST_FIXTURE::toWxString ( const std::filesystem::path & aPath)
inlinestaticprivateinherited

Definition at line 105 of file git_test_fixture.h.

Referenced by GIT_TEST_FIXTURE().

◆ treeStatus()

std::map< wxString, FileStatus > GIT_IGNORE_FIXTURE::treeStatus ( KIGIT_COMMON & aCommon)
inlineinherited

What the project tree is built from, ignored paths included.

Definition at line 88 of file test_kigit_ignore.cpp.

References reported().

◆ writeFile()

void GIT_IGNORE_FIXTURE::writeFile ( const wxString & aFile,
const wxString & aContent )
inlineinherited

Definition at line 62 of file test_kigit_ignore.cpp.

References m_repoPath, and KI_TEST::WriteGitFile().

Referenced by GIT_IGNORE_FIXTURE().

Member Data Documentation

◆ m_backend

SCOPED_GIT_BACKEND KI_TEST::GIT_TEST_FIXTURE::m_backend
privateinherited

Definition at line 115 of file git_test_fixture.h.

Referenced by Backend().

◆ m_configDir

SCOPED_TEMP_DIR KI_TEST::GIT_TEST_FIXTURE::m_configDir
privateinherited

Definition at line 117 of file git_test_fixture.h.

Referenced by GIT_TEST_FIXTURE().

◆ m_configSearchPath

SCOPED_GIT_CONFIG_SEARCH_PATH KI_TEST::GIT_TEST_FIXTURE::m_configSearchPath
privateinherited

Definition at line 118 of file git_test_fixture.h.

Referenced by GIT_TEST_FIXTURE().

◆ m_originalCwd

wxString KI_TEST::GIT_TEST_FIXTURE::m_originalCwd
privateinherited

Definition at line 119 of file git_test_fixture.h.

Referenced by GIT_TEST_FIXTURE(), and ~GIT_TEST_FIXTURE().

◆ m_repo

KIGIT::GitRepositoryPtr GIT_IGNORE_FIXTURE::m_repo
protectedinherited

Definition at line 114 of file test_kigit_ignore.cpp.

Referenced by GIT_IGNORE_FIXTURE(), and repo().

◆ m_repoPath

wxString GIT_IGNORE_FIXTURE::m_repoPath
protectedinherited

◆ m_tempDir

SCOPED_TEMP_DIR KI_TEST::GIT_TEST_FIXTURE::m_tempDir
privateinherited

Definition at line 116 of file git_test_fixture.h.

Referenced by GIT_TEST_FIXTURE().

◆ m_tempPath

wxString KI_TEST::GIT_TEST_FIXTURE::m_tempPath
privateinherited

Definition at line 120 of file git_test_fixture.h.

Referenced by GIT_TEST_FIXTURE(), and TempPath().


The documentation for this struct was generated from the following file: