summaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-07-09 02:24:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-07-09 08:11:28 (GMT)
commitdba2e2037f40685bffc87d3e7114a02c5bda1eff (patch)
treef5d2a9e6df86486e76f972327fd6596580851161 /dir.h
parent1d8842d921cc2695f155f4a10904eeffad085c77 (diff)
downloadgit-dba2e2037f40685bffc87d3e7114a02c5bda1eff.zip
git-dba2e2037f40685bffc87d3e7114a02c5bda1eff.tar.gz
git-dba2e2037f40685bffc87d3e7114a02c5bda1eff.tar.bz2
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.h b/dir.h
index f9d69dd..a631446 100644
--- a/dir.h
+++ b/dir.h
@@ -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);