author | Linus Torvalds <torvalds@osdl.org> | |
Wed, 17 May 2006 02:02:14 +0000 (19:02 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 17 May 2006 08:56:40 +0000 (01:56 -0700) | ||
commit | 453ec4bdf403c2e89892266a0a660c21680d3f9d | |
tree | 96a90056583d671b032a1c88dd3278492b112c48 | tree | snapshot |
parent | 63dffdf03da65ddf1a02c3215ad15ba109189d42 | commit | diff |
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>
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 | diff | blob | history | |
dir.c | [new file with mode: 0644] | blob |
dir.h | [new file with mode: 0644] | blob |
ls-files.c | diff | blob | history |