Make tag date readable
[TortoiseGit.git] / src / TortoiseProc / Commands / SVNIgnoreCommand.cpp
blob0b0d785ae00c210b023056eb3340fa837d9f6ae1
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2007-2008, 2012, 2014-2016 - 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 #include "stdafx.h"
20 #include "SVNIgnoreCommand.h"
22 #include "ProgressDlg.h"
23 #include "Git.h"
24 #include "SVNIgnoreTypeDlg.h"
26 bool SVNIgnoreCommand::Execute()
28 CSVNIgnoreTypeDlg dlg;
29 CProgressDlg progress;
31 if( dlg.DoModal() == IDOK)
33 switch (dlg.m_SVNIgnoreType)
35 case 0:
37 progress.m_GitCmd = L"git.exe svn show-ignore";
38 CString dotGitPath;
39 GitAdminDir::GetAdminDirPath(g_Git.m_CurrentDir, dotGitPath);
40 progress.m_LogFile = dotGitPath + L"info\\exclude";
41 progress.m_bShowCommand = false;
42 progress.m_PreText = L"git.exe svn show-ignore > " + progress.m_LogFile;
44 break;
45 case 1:
46 progress.m_GitCmd = L"git.exe svn create-ignore";
47 break;
48 default:
49 MessageBox(hwndExplorer, L"Unkown SVN Ignore Type", L"TortoiseGit", MB_OK | MB_ICONERROR);
50 return FALSE;
53 if (progress.DoModal() == IDOK)
54 return progress.m_GitStatus == 0;
56 return false;