
При сравнении клонов git-репозиториев меня раздражает внешний вид папки .git и ее содержимого на вкладке сравнения каталогов.
В диалоговом окне Tools -> Filters... у меня есть Exclude Source Control
фильтр в FileFilters
списке. Проверяя этот файл, я вижу строку для .git
папки:
def: include
d: \\\.git$ ## Git directory
.git
Почему при сравнении я все еще получаю различия между папками?
решение1
Это файл фильтра, который я определил для своего рабочего пространства. Похоже, он работает для фильтрации Git, среди прочего:
## This is a directory/file filter template for WinMerge
name: Exclude binaries
desc: Exclude all project binaries and source control
## Select if filter is inclusive or exclusive
## Inclusive (loose) filter lets through all items not matching rules
## Exclusive filter lets through only items that match to rule
## include or exclude
def: include
## Filters for filenames begin with f:
## Filters for directories begin with d:
## (Inline comments begin with " ##" and extend to the end of the line)
f: \.ext$
d: \\subdir$
d: \.git
d: ZZZ_.*
f: libucos3.*\.a
f: *.swp
f: *.pyc