KiCad PCB EDA Suite
Loading...
Searching...
No Matches
kicad_git_errors.cpp
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 * or you may search the http://www.gnu.org website for the version 3 license,
20 * or you may write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23
24#include "config.h"
25
26// None of these values are currently used, but Seth says they may be used in the future,
27// so for now, just surpress the warning that is generated by the fact they exist and aren't
28// used anywhere.
29#ifdef HAVE_WUNUSED_CONST_VARIABLE
30 _Pragma( "GCC diagnostic push" ) \
31 _Pragma( "GCC diagnostic ignored \"-Wunused-const-variable\"" )
32#endif
33
34namespace KIGIT_ERROR
35{
36#undef _
37#define _(a) a
38
39// General errors
40const char* const kInvalidRepository = _( "Invalid repository." );
41const char* const kCommitFailed = _( "Failed to commit changes." );
42const char* const kMergeFailed = _( "Failed to merge branches." );
43
44// Clone errors
45const char* const kCloneFailed = _( "Failed to clone repository." );
46const char* const kRemoteNotFound = _( "Remote repository not found." );
47const char* const kAuthenticationFailed = _( "Authentication failed for remote repository." );
48
49// Branch errors
50const char* const kBranchNotFound = _( "Branch not found." );
51const char* const kBranchCreationFailed = _( "Failed to create branch." );
52const char* const kBranchDeletionFailed = _( "Failed to delete branch." );
53
54// Checkout errors
55const char* const kCheckoutFailed = _( "Failed to perform checkout operation." );
56const char* const kFileNotFoundInCheckout = _( "File not found during checkout operation." );
57
58// Conflict errors
59const char* const kMergeConflict = _( "Merge conflict encountered." );
60const char* const kRebaseConflict = _( "Rebase conflict encountered." );
61
62// Pull/Push errors
63const char* const kPullFailed = _( "Failed to pull changes from remote repository." );
64const char* const kPushFailed = _( "Failed to push changes to remote repository." );
65const char* const kNoUpstreamBranch = _( "No upstream branch configured." );
66const char* const kRemoteConnectionError =
67 _( "Failed to establish connection with remote repository." );
68
69// Tag errors
70const char* const kTagNotFound = _( "Tag not found." );
71const char* const kTagCreationFailed = _( "Failed to create tag." );
72const char* const kTagDeletionFailed = _( "Failed to delete tag." );
73
74const char* const kUnknownError = _( "Unknown error." );
75const char* const kNoError = _( "No error." );
76}
77
78#ifdef HAVE_WUNUSED_CONST_VARIABLE
79 _Pragma( "GCC diagnostic pop" )
80#endif
#define _(s)
const char *const kRemoteNotFound
const char *const kCommitFailed
const char *const kInvalidRepository
const char *const kBranchCreationFailed
const char *const kRebaseConflict
const char *const kFileNotFoundInCheckout
const char *const kTagCreationFailed
const char *const kCloneFailed
const char *const kCheckoutFailed
const char *const kPullFailed
const char *const kMergeConflict
const char *const kNoError
const char *const kPushFailed
const char *const kTagDeletionFailed
const char *const kMergeFailed
const char *const kTagNotFound
const char *const kRemoteConnectionError
const char *const kBranchDeletionFailed
const char *const kAuthenticationFailed
const char *const kBranchNotFound
const char *const kUnknownError
const char *const kNoUpstreamBranch