KiCad PCB EDA Suite
Loading...
Searching...
No Matches
local_history.cpp File Reference
#include <local_history.h>
#include <history_lock.h>
#include <lockfile.h>
#include <settings/common_settings.h>
#include <pgm_base.h>
#include <trace_helpers.h>
#include <wildcards_and_files_ext.h>
#include <git2.h>
#include <wx/filename.h>
#include <wx/filefn.h>
#include <wx/ffile.h>
#include <wx/dir.h>
#include <wx/datetime.h>
#include <wx/log.h>
#include <wx/msgdlg.h>
#include <wx/choicdlg.h>
#include <vector>
#include <string>
#include <memory>
#include <algorithm>
#include <set>
#include <map>
#include <functional>
#include <cstring>

Go to the source code of this file.

Functions

static wxString historyPath (const wxString &aProjectPath)
 
static bool commitSnapshotWithLock (git_repository *repo, git_index *index, const wxString &aHistoryPath, const wxString &aProjectPath, const std::vector< wxString > &aFiles, const wxString &aTitle)
 
static void collectProjectFiles (const wxString &aProjectPath, std::vector< wxString > &aFiles)
 
static size_t dirSizeRecursive (const wxString &path)
 

Function Documentation

◆ collectProjectFiles()

static void collectProjectFiles ( const wxString & aProjectPath,
std::vector< wxString > & aFiles )
static

Definition at line 562 of file local_history.cpp.

References name, and path.

Referenced by LOCAL_HISTORY::CommitFullProjectSnapshot(), and LOCAL_HISTORY::RestoreCommit().

◆ commitSnapshotWithLock()

static bool commitSnapshotWithLock ( git_repository * repo,
git_index * index,
const wxString & aHistoryPath,
const wxString & aProjectPath,
const std::vector< wxString > & aFiles,
const wxString & aTitle )
static

Definition at line 436 of file local_history.cpp.

References delta, and index.

Referenced by LOCAL_HISTORY::CommitSnapshot(), and LOCAL_HISTORY::RestoreCommit().

◆ dirSizeRecursive()

static size_t dirSizeRecursive ( const wxString & path)
static

Definition at line 802 of file local_history.cpp.

References dirSizeRecursive(), name, and path.

Referenced by dirSizeRecursive(), and LOCAL_HISTORY::EnforceSizeLimit().

◆ historyPath()

static wxString historyPath ( const wxString & aProjectPath)
static

Definition at line 51 of file local_history.cpp.