]> git.ipfire.org Git - thirdparty/git.git/commit - dir.c
read_directory(): further split treat_path()
authorJunio C Hamano <gitster@pobox.com>
Sat, 9 Jan 2010 04:56:16 +0000 (20:56 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 9 Jan 2010 07:13:47 +0000 (23:13 -0800)
commit16e2cfa90993b23bda8ff1ffb958cac20e58b058
treeac5a143474ad3930c848f8fd75cefc1f077be8d6
parent53cc5356fb591d0efa9d2725f8430afe5f5630b5
read_directory(): further split treat_path()

The next caller I'll be adding won't have an access to struct dirent
because it won't be reading from a directory stream.  Split the main
part of the function further into a separate function to make it usable
by a caller without passing a dirent as long as it knows what type is
feeding the function.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c