]> git.ipfire.org Git - thirdparty/git.git/commit - dir.c
libify git-ls-files directory traversal
authorLinus Torvalds <torvalds@osdl.org>
Wed, 17 May 2006 02:02:14 +0000 (19:02 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 17 May 2006 08:56:40 +0000 (01:56 -0700)
commit453ec4bdf403c2e89892266a0a660c21680d3f9d
tree96a90056583d671b032a1c88dd3278492b112c48
parent63dffdf03da65ddf1a02c3215ad15ba109189d42
libify git-ls-files directory traversal

This moves the core directory traversal and filename exclusion logic
into the general git library, making it available for other users
directly.

If we ever want to do "git commit" or "git add" as a built-in (and we
do), we want to be able to handle most of git-ls-files as a library.

NOTE! Not all of git-ls-files is libified by this.  The index matching
and pathspec prefix calculation is still in ls-files.c, but this is a
big part of it.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile
dir.c [new file with mode: 0644]
dir.h [new file with mode: 0644]
ls-files.c