mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-02 06:12:41 -06:00
ide: '.git' now ignored in directory comparison tool
This commit is contained in:
parent
58a79d6780
commit
5b1144ab99
3 changed files with 10 additions and 3 deletions
|
|
@ -217,7 +217,11 @@ void DirDiffDlg::Compare()
|
|||
String p1 = AppendFileName(~dir1, f[i]);
|
||||
String p2 = AppendFileName(~dir2, f[i]);
|
||||
int n = NORMAL_FILE;
|
||||
if((IsNull(dlim) || FileGetTime(p1) >= dlim || FileGetTime(p2) >= dlim) && !FileEqual(p1, p2, n))
|
||||
auto IsGit = [&](const String& path) {
|
||||
return path.Find("/.git/") >= 0 || path.Find("\\.git/") >= 0 || path.Find("\\.git\\") >= 0 || path.Find("/.git\\") >= 0;
|
||||
};
|
||||
if((IsNull(dlim) || FileGetTime(p1) >= dlim || FileGetTime(p2) >= dlim) && !FileEqual(p1, p2, n) &&
|
||||
!IsGit(p1) && !IsGit(p2))
|
||||
list.Add(MakeTuple(f[i], p1, p2, n));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue