OSDN Git Service

Enable formatpatch at log dialog
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Commands / FormatPatchCommand.cpp
index f5e7cb2..b3fa3ea 100644 (file)
@@ -33,7 +33,21 @@ bool FormatPatchCommand::Execute()
 {\r
        CFormatPatchDlg dlg;\r
 //     dlg.m_bIsTag=TRUE;\r
-       \r
+       CString startval = parser.GetVal(_T("startrev"));\r
+       CString endval = parser.GetVal(_T("endrev"));\r
+\r
+       if( endval.IsEmpty() && (!startval.IsEmpty()))\r
+       {\r
+               dlg.m_Since=startval;\r
+               dlg.m_Radio = IDC_RADIO_SINCE;\r
+\r
+       }else if( (!endval.IsEmpty()) && (!startval.IsEmpty()))\r
+       {\r
+               dlg.m_From=startval;\r
+               dlg.m_To=endval;\r
+               dlg.m_Radio = IDC_RADIO_RANGE;\r
+       }\r
+\r
        if(dlg.DoModal()==IDOK)\r
        {\r
                CString cmd;\r