OSDN Git Service

merge original branch.
[tortoisegit/TortoiseGitJp.git] / src / Git / GitStatusListCtrl.h
index e119499..afe9ee1 100644 (file)
@@ -23,6 +23,7 @@
 #include "GitConfig.h"\r
 #include "Colors.h"\r
 #include "XPTheme.h"\r
+#include "CommonResource.h"\r
 \r
 #define SVN_WC_ENTRY_WORKING_SIZE_UNKNOWN (-1)\r
 \r
@@ -199,6 +200,8 @@ public:
                IDSVNLC_REVERTTOREV             ,\r
                IDSVNLC_VIEWREV                 ,\r
                IDSVNLC_FINDENTRY       ,\r
+               IDSVNLC_COMPARETWO              ,\r
+               IDSVNLC_GNUDIFF2                ,\r
 // the IDSVNLC_MOVETOCS *must* be the last index, because it contains a dynamic submenu where \r
 // the submenu items get command ID's sequent to this number\r
                IDSVNLC_MOVETOCS                ,\r
@@ -231,9 +234,14 @@ public:
         */\r
        static const UINT SVNSLNM_CHECKCHANGED;\r
 \r
+       static const UINT SVNSLNM_ITEMCHANGED;\r
+\r
        CGitStatusListCtrl(void);\r
        ~CGitStatusListCtrl(void);\r
 \r
+       CString m_Rev1;\r
+       CString m_Rev2;\r
+\r
        /**\r
         * \ingroup TortoiseProc\r
         * Helper class for CGitStatusListCtrl which represents\r
@@ -513,6 +521,14 @@ public:
         bool operator() ( const CTGitPath* entry1\r
                         , const CTGitPath* entry2) const;\r
 \r
+               static int A2L(const CString &str)\r
+               {\r
+                       if(str==_T("-"))\r
+                               return -1;\r
+                       else\r
+                               return _ttol(str);\r
+               }\r
+\r
     private:\r
 \r
         ColumnManager* columnManager;\r
@@ -771,6 +787,8 @@ public:
 \r
        CString                                         m_sUUID;                        ///< the UUID of the associated repository\r
 \r
+       BOOL                                            m_bIsRevertTheirMy;     ///< at rebase case, Their and My version is revert. \r
+\r
        DECLARE_MESSAGE_MAP()\r
 \r
 private:\r
@@ -781,6 +799,7 @@ private:
        bool BuildStatistics(); ///< build the statistics and correct the case of files/folders\r
        void StartDiff(int fileindex);  ///< start the external diff program\r
        void StartDiffWC(int fileindex);        ///< start the external diff program\r
+       void StartDiffTwo(int fileindex);\r
        \r
        enum\r
        {\r