Today we have $GIT_DIR/info/exclude for the main worktree, but $(git rev-parse --git-dir)/info/exclude for secondary worktrees does not actually contribute to ignore specs.
Is this a "we never got around to implementing that", an intentional omission, or something else? Since --git-dir is described as parsing $GIT_DIR, I would naturally combine that with the gitignore(1) manual to think that the worktree.git/info/exclude should work.
(Currently it seems that main-worktree/.git/info/exclude applies to all worktrees, which may not be desirable in some circumstances.)
Thanks,
-- D. Ben Knoble