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