summaryrefslogtreecommitdiff
path: root/t/t9133-git-svn-nested-git-repo.sh
diff options
context:
space:
mode:
authorVictoria Dye <vdye@github.com>2023-10-09 21:58:55 +0000
committerJunio C Hamano <gitster@pobox.com>2023-10-09 15:53:13 -0700
commitaa79636fe70247a19648d73e52a7774536100567 (patch)
tree8c98aea4e38c513512d92fea9e38fbf1f926ed3b /t/t9133-git-svn-nested-git-repo.sh
parent6dc10043338bbb29ffd7f8fc431f37b0fed08ae6 (diff)
dir.[ch]: add 'follow_symlink' arg to 'get_dtype'
Add a 'follow_symlink' boolean option to 'get_type()'. If 'follow_symlink' is enabled, DT_LNK (in addition to DT_UNKNOWN) d_types triggers the stat-based d_type resolution, using 'stat' instead of 'lstat' to get the type of the followed symlink. Note that symlinks are not followed recursively, so a symlink pointing to another symlink will still resolve to DT_LNK. Update callers in 'diagnose.c' to specify 'follow_symlink = 0' to preserve current behavior. Signed-off-by: Victoria Dye <vdye@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9133-git-svn-nested-git-repo.sh')
0 files changed, 0 insertions, 0 deletions