KiCad PCB EDA Suite
Loading...
Searching...
No Matches
git_compare_handler.h
Go to the documentation of this file.
1
/*
2
* This program source code file is part of KiCad, a free EDA CAD application.
3
*
4
* Copyright The KiCad Developers, see AUTHORS.TXT for contributors.
5
*
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 3
9
* of the License, or (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, you may find one here:
18
* http://www.gnu.org/licenses/gpl-3.0.html
19
*/
20
21
#ifndef GIT_COMPARE_HANDLER_H
22
#define GIT_COMPARE_HANDLER_H
23
24
#include <
kicommon.h
>
25
26
#include <wx/string.h>
27
28
#include <vector>
29
30
31
struct
git_repository;
32
33
34
namespace
KIGIT
35
{
36
37
enum class
FILE_CHANGE_STATUS
38
{
39
UNCHANGED
,
40
ADDED
,
41
REMOVED
,
42
MODIFIED
,
43
RENAMED
,
44
COPIED
,
45
TYPECHANGE
46
};
47
48
49
struct
KICOMMON_API
CHANGED_FILE
50
{
51
wxString
path
;
52
wxString
oldPath
;
// populated for RENAMED / COPIED
53
FILE_CHANGE_STATUS
status
=
FILE_CHANGE_STATUS::UNCHANGED
;
54
};
55
56
67
KICOMMON_API
std::vector<CHANGED_FILE>
CompareRefs
( git_repository* aRepo,
68
const
wxString& aBaseRef,
69
const
wxString& aHeadRef );
70
71
72
KICOMMON_API
const
char
*
FileChangeStatusToString
(
FILE_CHANGE_STATUS
aStatus );
73
74
}
// namespace KIGIT
75
76
#endif
// GIT_COMPARE_HANDLER_H
kicommon.h
KICOMMON_API
#define KICOMMON_API
Definition
kicommon.h:27
KIGIT
Definition
git_compare_handler.cpp:36
KIGIT::CompareRefs
std::vector< CHANGED_FILE > CompareRefs(git_repository *aRepo, const wxString &aBaseRef, const wxString &aHeadRef)
Compare two git refs (branch / tag / commit OID) within a repository and return the per-file change l...
Definition
git_compare_handler.cpp:76
KIGIT::FileChangeStatusToString
const char * FileChangeStatusToString(FILE_CHANGE_STATUS aStatus)
Definition
git_compare_handler.cpp:38
KIGIT::FILE_CHANGE_STATUS
FILE_CHANGE_STATUS
Definition
git_compare_handler.h:38
KIGIT::FILE_CHANGE_STATUS::MODIFIED
@ MODIFIED
Definition
git_compare_handler.h:42
KIGIT::FILE_CHANGE_STATUS::UNCHANGED
@ UNCHANGED
Definition
git_compare_handler.h:39
KIGIT::FILE_CHANGE_STATUS::ADDED
@ ADDED
Definition
git_compare_handler.h:40
KIGIT::FILE_CHANGE_STATUS::RENAMED
@ RENAMED
Definition
git_compare_handler.h:43
KIGIT::FILE_CHANGE_STATUS::REMOVED
@ REMOVED
Definition
git_compare_handler.h:41
KIGIT::FILE_CHANGE_STATUS::TYPECHANGE
@ TYPECHANGE
Definition
git_compare_handler.h:45
KIGIT::FILE_CHANGE_STATUS::COPIED
@ COPIED
Definition
git_compare_handler.h:44
KIGIT::CHANGED_FILE
Definition
git_compare_handler.h:50
KIGIT::CHANGED_FILE::oldPath
wxString oldPath
Definition
git_compare_handler.h:52
KIGIT::CHANGED_FILE::path
wxString path
Definition
git_compare_handler.h:51
KIGIT::CHANGED_FILE::status
FILE_CHANGE_STATUS status
Definition
git_compare_handler.h:53
src
common
git
git_compare_handler.h
Generated on Fri Jun 26 2026 00:05:32 for KiCad PCB EDA Suite by
1.13.2