aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-02-28 11:52:04 -0800
committerJunio C Hamano <junkio@cox.net>2007-02-28 12:00:00 -0800
commit53bca91a7d337ea648197b9642b41a92704c17f7 (patch)
tree28c8d3d7d20fbfb87ed85ca0d0b3804f6e8c43d9 /cache.h
parentedaec3fbe8821a5761e35e9b01937eea9b2544c1 (diff)
downloadgit-53bca91a7d337ea648197b9642b41a92704c17f7.tar.gz
git-53bca91a7d337ea648197b9642b41a92704c17f7.tar.xz
index_fd(): pass optional path parameter as hint for blob conversion
Signed-off-by: Junio C Hamano <junkio@cox.net>
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 9f30ad672..b84e3decf 100644
--- a/cache.h
+++ b/cache.h
@@ -190,7 +190,7 @@ extern int ce_same_name(struct cache_entry *a, struct cache_entry *b);
extern int ce_match_stat(struct cache_entry *ce, struct stat *st, int);
extern int ce_modified(struct cache_entry *ce, struct stat *st, int);
extern int ce_path_match(const struct cache_entry *ce, const char **pathspec);
-extern int index_fd(unsigned char *sha1, int fd, struct stat *st, int write_object, enum object_type type);
+extern int index_fd(unsigned char *sha1, int fd, struct stat *st, int write_object, enum object_type type, const char *path);
extern int read_pipe(int fd, char** return_buf, unsigned long* return_size);
extern int index_pipe(unsigned char *sha1, int fd, const char *type, int write_object);
extern int index_path(unsigned char *sha1, const char *path, struct stat *st, int write_object);