OSDN Git Service

Default UnCheck untrack file at commit dialog
authorgit.exe' is not recognized as an internal or external command <git.exe' is not recognized as an internal or external command>
Mon, 9 Feb 2009 13:34:02 +0000 (21:34 +0800)
committergit.exe' is not recognized as an internal or external command <git.exe' is not recognized as an internal or external command>
Mon, 9 Feb 2009 13:34:02 +0000 (21:34 +0800)
Signed-off-by: Frank Li<lznuaa@gmail.com>
src/TortoiseProc/CommitDlg.cpp

index 23e53da..778b9d7 100644 (file)
@@ -690,6 +690,7 @@ UINT CCommitDlg::StatusThread()
                else\r
                {\r
                        DWORD dwCheck = m_bSelectFilesForCommit ? dwShow : 0;\r
+                       dwCheck &=~(CTGitPath::LOGACTIONS_UNVER); //don't check unversion file default. \r
                        m_ListCtrl.Show(dwShow, dwCheck);\r
                        m_bSelectFilesForCommit = true;\r
                }\r
@@ -720,7 +721,7 @@ UINT CCommitDlg::StatusThread()
                        GetDlgItem(IDC_SHOWUNVERSIONED)->SendMessage(BM_SETCHECK, BST_CHECKED);\r
                        DWORD dwShow = (DWORD)(SVNSLC_SHOWVERSIONEDBUTNORMALANDEXTERNALSFROMDIFFERENTREPOS | SVNSLC_SHOWUNVERSIONED | SVNSLC_SHOWLOCKS);\r
                        m_ListCtrl.UpdateFileList(CGitStatusListCtrl::FILELIST_UNVER);\r
-                       m_ListCtrl.Show(dwShow);\r
+                       m_ListCtrl.Show(dwShow,dwShow&(~CTGitPath::LOGACTIONS_UNVER));\r
                }\r
        }\r
 \r