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

Repository state used before an operation that requires a clean working tree. More...

#include <git_status_entries.h>

Public Member Functions

wxString RefusalMessage (const std::vector< wxString > &aUnsavedEditors, bool aAllowTrackedChanges=false) const
 Empty when rewriting is allowed.
 

Public Attributes

bool checked = false
 
bool hasTrackedChanges = false
 
wxString lfsMessage
 
std::vector< wxString > outsideProject
 

Detailed Description

Repository state used before an operation that requires a clean working tree.

Read on a worker and combined with live editor state on the UI thread, so unsaved work is never mistaken for an uncommitted file. Stash creation uses the tracked state after saving editors.

Definition at line 125 of file git_status_entries.h.

Member Function Documentation

◆ RefusalMessage()

wxString GIT_WORKTREE_STATUS::RefusalMessage ( const std::vector< wxString > & aUnsavedEditors,
bool aAllowTrackedChanges = false ) const

Empty when rewriting is allowed.

Unsaved editors take precedence over disk changes. Stash creation allows tracked changes because it records them before rewriting files.

Definition at line 690 of file git_status_entries.cpp.

References _, checked, hasTrackedChanges, lfsMessage, message, name, outsideProject, and path.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and ProjectSafeToRewrite().

Member Data Documentation

◆ checked

◆ hasTrackedChanges

bool GIT_WORKTREE_STATUS::hasTrackedChanges = false

◆ lfsMessage

wxString GIT_WORKTREE_STATUS::lfsMessage

◆ outsideProject

std::vector<wxString> GIT_WORKTREE_STATUS::outsideProject

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