diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-07-08 19:24:39 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-07-09 01:11:28 -0700 |
commit | dba2e2037f40685bffc87d3e7114a02c5bda1eff (patch) | |
tree | f5d2a9e6df86486e76f972327fd6596580851161 /dir.h | |
parent | 1d8842d921cc2695f155f4a10904eeffad085c77 (diff) | |
download | git-dba2e2037f40685bffc87d3e7114a02c5bda1eff.tar.gz git-dba2e2037f40685bffc87d3e7114a02c5bda1eff.tar.xz |
Simplify read_directory[_recursive]() arguments
Stop the insanity with separate 'path' and 'base' arguments that must
match. We don't need that crazy interface any more, since we cleaned up
handling of 'path' in commit da4b3e8c28b1dc2b856d2555ac7bb47ab712598c.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.h')
-rw-r--r-- | dir.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -67,7 +67,7 @@ struct dir_struct { extern int match_pathspec(const char **pathspec, const char *name, int namelen, int prefix, char *seen); extern int fill_directory(struct dir_struct *dir, const char **pathspec); -extern int read_directory(struct dir_struct *, const char *path, const char *base, int baselen, const char **pathspec); +extern int read_directory(struct dir_struct *, const char *path, int len, const char **pathspec); extern int excluded(struct dir_struct *, const char *, int *); extern void add_excludes_from_file(struct dir_struct *, const char *fname); |