OSDN Git Service

Fixed issue #139: "Format patch" with a range of revisions doesn't export the first...
authorFrank Li <lznuaa@gmail.com>
Sat, 15 Aug 2009 05:30:15 +0000 (13:30 +0800)
committerFrank Li <lznuaa@gmail.com>
Sat, 15 Aug 2009 05:38:15 +0000 (13:38 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/Resources/TortoiseProcENG.rc
src/TortoiseProc/GitLogListAction.cpp

index 4e86c99..39f3cbd 100644 (file)
Binary files a/src/Resources/TortoiseProcENG.rc and b/src/Resources/TortoiseProcENG.rc differ
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
                                        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(" /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
                                                cmd += _T(" /endrev:")+r1->m_CommitHash;        \r
                                        }                               \r
                                        \r