Почему WinMerge не фильтрует папки .git, хотя действует FileFilter?

1326
ysap

При сравнении клонов git repo меня раздражает появление папки .git и ее содержимого на вкладке сравнения каталогов.

В диалоге Инструменты -> Фильтры ... у меня есть Exclude Source Controlфильтр в FileFiltersсписке. Изучая этот файл, есть строка для .gitпапки:

def: include d: \\\.git$ ## Git directory 

Почему я все еще получаю .gitразличия в папках в моих сравнениях?

4
У меня такая же проблема Wakan Tanka 7 лет назад 0

1 ответ на вопрос

1
ysap

Это файл фильтра, который я определил для моей рабочей области. Кажется, он работает для фильтрации 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 

Похожие вопросы