diff options
author | Dmitry Potapov <dpotapov@gmail.com> | 2008-08-03 08:39:16 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-03 13:14:35 -0700 |
commit | 43df4f86e035056605ceb757029181d7ddee1e7e (patch) | |
tree | 8b6e0b8bc97343fc34328fd44bd26bf0d60a165d /cache.h | |
parent | 2b603260f325b895baa20867bd45c8e251f19b78 (diff) | |
download | git-43df4f86e035056605ceb757029181d7ddee1e7e.tar.gz |
teach index_fd to work with pipes
index_fd can now work with file descriptors that are not normal files
but any readable file. If the given file descriptor is a regular file
then mmap() is used; for other files, strbuf_read is used.
The path parameter, which has been used as hint for filters, can be
NULL now to indicate that the file should be hashed literally without
any filter.
The index_pipe function is removed as redundant.
Signed-off-by: Dmitry Potapov <dpotapov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -391,7 +391,6 @@ extern int ie_modified(const struct index_state *, struct cache_entry *, struct 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, const char *path); -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); extern void fill_stat_cache_info(struct cache_entry *ce, struct stat *st); |