1
// TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2014, 2016-2018 - TortoiseGit
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
30 // if you change something here, also update SubmoduleDiffDlg.cpp and SubmoduleResolveConflictDlg.cpp!
43 static void GetSubmoduleChangeType(CGit
& subgit
, const CGitHash
& oldhash
, const CGitHash
& newhash
, bool& oldOK
, bool& newOK
, ChangeType
& changeType
, CString
& oldsub
, CString
& newsub
);
45 // Use two path to handle rename cases
46 static int Diff(HWND hWnd
, const CTGitPath
* pPath1
, const CTGitPath
* pPath2
, const CString
& rev1
, const CString
& rev2
, bool blame
= false, bool unified
= false, int jumpToLine
= 0, bool bAlternativeTool
= false, bool mustExist
= true);
47 static int SubmoduleDiff(HWND hWnd
, const CTGitPath
* pPath1
, const CTGitPath
* pPath2
, const CString
& rev1
, const CString
& rev2
, bool blame
= false, bool unified
= false);
48 static int DiffNull(HWND hWnd
, const CTGitPath
* pPath
, const CString
& rev1
, bool bIsAdd
= true, int jumpToLine
= 0, bool bAlternative
= false);
49 static int DiffCommit(HWND hWnd
, const CTGitPath
& path
, const GitRev
* r1
, const GitRev
* r2
, bool bAlternative
= false);
50 static int DiffCommit(HWND hWnd
, const CTGitPath
& path1
, const CTGitPath
& path2
, const GitRev
* r1
, const GitRev
* r2
, bool bAlternative
= false);
51 static int DiffCommit(HWND hWnd
, const CTGitPath
& path
, const CString
& r1
, const CString
& r2
, bool bAlternative
= false);
52 static int DiffCommit(HWND hWnd
, const CTGitPath
& path1
, const CTGitPath
& path2
, const CString
& r1
, const CString
& r2
, bool bAlternative
= false);
53 static int SubmoduleDiffNull(HWND hWnd
, const CTGitPath
* pPath1
, const CString
& rev1
);