dir: add a usage note to exclude_per_dir
commit59e009bf15cefd89105c3e162776ccf10f4e68f1
authorElijah Newren <newren@gmail.com>
Mon, 27 Feb 2023 15:28:11 +0000 (27 15:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Feb 2023 16:29:50 +0000 (27 08:29 -0800)
tree6a9f628b20420c8581c46c498076327b7249d855
parent5fdf285e6254fff4d9560f72878456f0a53e2e38
dir: add a usage note to exclude_per_dir

As evidenced by the fix a couple commits ago, places in the code using
exclude_per_dir are likely buggy and should be adapted to call
setup_standard_excludes() instead.  Unfortunately, the usage of
exclude_per_dir has been hardcoded into the arguments ls-files accepts,
so we cannot actually remove it.  Add a note that it is deprecated and
no other callers should use it directly.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.h