I am new to Doxygen and recently came across an issue on how to exclude .git
folder from being searched by Doxygen.
Neither
EXCLUDE = .git
nor
EXCLUDE_PATTERNS = */.git/*
work.
This does seem like an ordinary thing, having a git repository with doxyfile for the source code, in the same folder. So am I missing something.
EDIT: doxygen -x Doxyfile
# Difference with default Doxyfile 1.9.7 (9de8406f02f007519c5d51e67602de9c7ce85c2f)
INPUT = /rootfolder
RECURSIVE = YES
EXCLUDE = .git
EXCLUDE_PATTERNS = */.git/*
MACRO_EXPANSION = YES
EXPAND_ONLY_PREDEF = YES
PREDEFINED = PYTHON=1
EDIT2: Okay so I seem to have figured it out. Problem was in
EXCLUDE = .git
because according to post from @VonC's answer
More precisely, adding a directory to the EXCLUDE directive causes everything in that directory to be searched.
So simply leaving EXCLUDE
directive to be empty solved the issue.