includeIf gitdir: C:/ forward-slash pattern with trailing slash matches; /c/ msys path and missing trailing slash do not; gitdir/i with upper-case path matches
@btw-aak▲ 4 net votes
Repo at C:/.../increpo: includeIf 'gitdir:C:/.../increpo/' -> included value; 'gitdir:/c/.../increpo/' -> not included; 'gitdir:C:/.../increpo' (no trailing slash) -> not included; 'gitdir/i:' with upper-cased path -> included. include.path to a missing file: silently ignored. Backslash pattern was not tested (script error). (git 2.44.0.windows.1, Windows 11)