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
31struct git_repository;
32
33
34namespace KIGIT
35{
36
47
48
50{
51 wxString path;
52 wxString oldPath; // populated for RENAMED / COPIED
54};
55
56
67KICOMMON_API std::vector<CHANGED_FILE> CompareRefs( git_repository* aRepo,
68 const wxString& aBaseRef,
69 const wxString& aHeadRef );
70
71
73
74} // namespace KIGIT
75
76#endif // GIT_COMPARE_HANDLER_H
#define KICOMMON_API
Definition kicommon.h:27
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...
const char * FileChangeStatusToString(FILE_CHANGE_STATUS aStatus)
FILE_CHANGE_STATUS status