Drop unused printing code templates
[TortoiseGit.git] / src / GitWCRev / status.h
blobcba113b4931481c57ee3b55537898ddcf79a0f6a
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2017-2018 - TortoiseGit
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #pragma once
20 #include "GitWCRev.h"
22 // Internal error codes
23 // Note: these error codes are documented in /doc/source/en/TortoiseGit/tgit_GitWCRev.xml
24 #define ERR_SYNTAX 1 // Syntax error
25 #define ERR_FNF 2 // File/folder not found
26 #define ERR_OPEN 3 // File open error
27 #define ERR_ALLOC 4 // Memory allocation error
28 #define ERR_READ 5 // File read/write/size error
29 #define ERR_GIT_ERR 6 // Git error
30 // Documented error codes
31 #define ERR_GIT_MODS 7 // Local mods found (-mM)
32 #define ERR_OUT_EXISTS 9 // Output file already exists (-d)
33 #define ERR_NOWC 10 // the path is not a working copy or part of one
34 #define ERR_GIT_UNVER 11 // Unversioned items found (-uU)
36 int GetStatus(const TCHAR* wc, GitWCRev_t& GitStat);
37 int GetStatusUnCleanPath(const TCHAR* wc, GitWCRev_t& GitStat);