]> git.ipfire.org Git - thirdparty/git.git/commit
dir.[ch]: expose 'get_dtype'
authorVictoria Dye <vdye@github.com>
Mon, 9 Oct 2023 21:58:54 +0000 (21:58 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Oct 2023 22:53:13 +0000 (15:53 -0700)
commit6dc10043338bbb29ffd7f8fc431f37b0fed08ae6
tree93c140d03d14f0d066b19a5c996892b14a9dafa8
parent5305474ec4650755f2c0437c004cabfb1c60cf6a
dir.[ch]: expose 'get_dtype'

Move 'get_dtype()' from 'diagnose.c' to 'dir.c' and add its declaration to
'dir.h' so that it is accessible to callers in other files. The function and
its documentation are moved verbatim except for a small addition to the
description clarifying what the 'path' arg represents.

Signed-off-by: Victoria Dye <vdye@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diagnose.c
dir.c
dir.h