Dropped unused variables
[TortoiseGit.git] / src / TortoiseProc / Commands / RevisionGraphCommand.cpp
blob49c414582d17a284ae76b10c8056b9946a7c8c46
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2007, 2009-2011 - TortoiseSVN
4 // Copyright (C) 2012 - TortoiseGit
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 2
9 // of the License, or (at your option) any later version.
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.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #include "stdafx.h"
21 #include "RevisionGraphCommand.h"
23 #include "RevisionGraph\RevisionGraphDlg.h"
25 bool RevisionGraphCommand::Execute()
27 CString val = parser.GetVal(_T("pegrev"));
28 GitRev pegrev;// = val.IsEmpty() ? GitRev() : GitRev(val);
30 CRevisionGraphDlg dlg;
31 dlg.SetPath(g_Git.m_CurrentDir);
32 // dlg.SetPegRevision(pegrev);
33 if (parser.HasVal(L"output"))
35 dlg.SetOutputFile(parser.GetVal(L"output"));
36 // if (parser.HasVal(L"options"))
37 // dlg.SetOptions(parser.GetLongVal(L"options"));
38 dlg.StartHidden();
40 dlg.DoModal();
42 return true;