OSDN Git Service

Fixed issue #139: "Format patch" with a range of revisions doesn't export the first...
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / GitLogListAction.cpp
index 20596cc..7bf709b 100644 (file)
@@ -457,12 +457,12 @@ void CGitLogList::ContextMenuAction(int cmd,int FirstSelect, int LastSelect)
                                        r2 = reinterpret_cast<GitRev*>(m_arShownList.GetAt(LastSelect));\r
                                        if( this->m_IsOldFirst )\r
                                        {       \r
-                                               cmd += _T(" /startrev:")+r1->m_CommitHash;\r
+                                               cmd += _T(" /startrev:")+r1->m_CommitHash+_T("~1");\r
                                                cmd += _T(" /endrev:")+r2->m_CommitHash;\r
        \r
                                        }else\r
                                        {       \r
-                                               cmd += _T(" /startrev:")+r2->m_CommitHash;\r
+                                               cmd += _T(" /startrev:")+r2->m_CommitHash+_T("~1");\r
                                                cmd += _T(" /endrev:")+r1->m_CommitHash;        \r
                                        }                               \r
                                        \r