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 (C) 2023 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
33namespace KIGIT_ERROR
34{
35 #undef _
36 #define _(a) a
37
38 // General errors
39 const char* const kInvalidRepository = _("Invalid repository.");
40 const char* const kCommitFailed = _("Failed to commit changes.");
41 const char* const kMergeFailed = _("Failed to merge branches.");
42
43 // Clone errors
44 const char* const kCloneFailed = _("Failed to clone repository.");
45 const char* const kRemoteNotFound = _("Remote repository not found.");
46 const char* const kAuthenticationFailed = _("Authentication failed for remote repository.");
47
48 // Branch errors
49 const char* const kBranchNotFound = _("Branch not found.");
50 const char* const kBranchCreationFailed = _("Failed to create branch.");
51 const char* const kBranchDeletionFailed = _("Failed to delete branch.");
52
53 // Checkout errors
54 const char* const kCheckoutFailed = _("Failed to perform checkout operation.");
55 const char* const kFileNotFoundInCheckout = _("File not found during checkout operation.");
56
57 // Conflict errors
58 const char* const kMergeConflict = _("Merge conflict encountered.");
59 const char* const kRebaseConflict = _("Rebase conflict encountered.");
60
61 // Pull/Push errors
62 const char* const kPullFailed = _("Failed to pull changes from remote repository.");
63 const char* const kPushFailed = _("Failed to push changes to remote repository.");
64 const char* const kNoUpstreamBranch = _("No upstream branch configured.");
65 const char* const kRemoteConnectionError = _("Failed to establish connection with remote repository.");
66
67 // Tag errors
68 const char* const kTagNotFound = _("Tag not found.");
69 const char* const kTagCreationFailed = _("Failed to create tag.");
70 const char* const kTagDeletionFailed = _("Failed to delete tag.");
71
72 const char* const kUnknownError = _("Unknown error.");
73 const char* const kNoError = _("No error.");
74
75}
76
77#ifdef HAVE_WUNUSED_CONST_VARIABLE
78 _Pragma( "GCC diagnostic pop" )
79#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