|
KiCad PCB EDA Suite
|
Build a temp working repo with two commits. More...
Public Member Functions | |
| GIT_COMPARE_FIXTURE () | |
| ~GIT_COMPARE_FIXTURE () | |
| void | writeFile (const wxString &aFile, const wxString &aContent) |
| Write a file in the working tree (or remove it if aRemove is set). | |
| void | removeFile (const wxString &aFile) |
| bool | commitAll (const wxString &aMessage) |
| Stage every change (including deletions) and create a commit on HEAD. | |
| git_repository * | repo () const |
| bool | ready () const |
Private Member Functions | |
| bool | initRepo () |
Private Attributes | |
| git_repository * | m_repo |
| wxString | m_repoPath |
| bool | m_ready |
Static Private Attributes | |
| static long | s_counter = 0 |
Build a temp working repo with two commits.
The first commit adds a.txt and b.txt; the second modifies a.txt, deletes b.txt and adds c.txt. This lets a compare of HEAD~1..HEAD exercise modified / removed / added deltas.
Definition at line 52 of file test_git_compare_handler.cpp.
|
inline |
Definition at line 54 of file test_git_compare_handler.cpp.
References initRepo(), m_ready, m_repo, m_repoPath, and s_counter.
|
inline |
Definition at line 72 of file test_git_compare_handler.cpp.
References m_repo, and m_repoPath.
|
inline |
Stage every change (including deletions) and create a commit on HEAD.
Definition at line 100 of file test_git_compare_handler.cpp.
References index, m_repo, TEST_AUTHOR_EMAIL, and TEST_AUTHOR_NAME.
Referenced by initRepo().
|
inlineprivate |
Definition at line 161 of file test_git_compare_handler.cpp.
References commitAll(), m_repo, m_repoPath, removeFile(), TEST_AUTHOR_EMAIL, TEST_AUTHOR_NAME, and writeFile().
Referenced by GIT_COMPARE_FIXTURE().
|
inline |
Definition at line 157 of file test_git_compare_handler.cpp.
References m_ready.
|
inline |
Definition at line 93 of file test_git_compare_handler.cpp.
References m_repoPath.
Referenced by initRepo().
|
inline |
Definition at line 156 of file test_git_compare_handler.cpp.
References m_repo.
|
inline |
Write a file in the working tree (or remove it if aRemove is set).
Definition at line 85 of file test_git_compare_handler.cpp.
References m_repoPath.
Referenced by initRepo().
|
private |
Definition at line 197 of file test_git_compare_handler.cpp.
Referenced by GIT_COMPARE_FIXTURE(), and ready().
|
private |
Definition at line 195 of file test_git_compare_handler.cpp.
Referenced by commitAll(), GIT_COMPARE_FIXTURE(), initRepo(), repo(), and ~GIT_COMPARE_FIXTURE().
|
private |
Definition at line 196 of file test_git_compare_handler.cpp.
Referenced by GIT_COMPARE_FIXTURE(), initRepo(), removeFile(), writeFile(), and ~GIT_COMPARE_FIXTURE().
|
staticprivate |
Definition at line 199 of file test_git_compare_handler.cpp.
Referenced by GIT_COMPARE_FIXTURE().