summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-14 18:39:27 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-14 18:39:27 (GMT)
commit3e58763542ab858ed2b2c7c704594f420df28c8b (patch)
treed8ac1c38a08c621eb237c962dfc099fc48c83970 /cache.h
parent0ca14a57f159fc9d0923dbb122705dd8d6a45488 (diff)
downloadgit-3e58763542ab858ed2b2c7c704594f420df28c8b.zip
git-3e58763542ab858ed2b2c7c704594f420df28c8b.tar.gz
git-3e58763542ab858ed2b2c7c704594f420df28c8b.tar.bz2
Fix up read_tree() pathspec matching to use "const char **"
The same way the other pathspecs work. Also fix missing success return from the matching - not that anything actually uses this yet ;)
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 53e3066..36cb4ae 100644
--- a/cache.h
+++ b/cache.h
@@ -191,7 +191,7 @@ extern char *write_sha1_file_prepare(void *buf,
extern int check_sha1_signature(const unsigned char *sha1, void *buf, unsigned long size, const char *type);
/* Read a tree into the cache */
-extern int read_tree(void *buffer, unsigned long size, int stage, char **paths);
+extern int read_tree(void *buffer, unsigned long size, int stage, const char **paths);
extern int write_sha1_from_fd(const unsigned char *sha1, int fd);
extern int write_sha1_to_fd(int fd, const unsigned char *sha1);