summaryrefslogtreecommitdiffstats
path: root/setup.c
diff options
context:
space:
mode:
authorDmitry Potapov <dpotapov@gmail.com>2008-08-03 06:39:16 +0200
committerJunio C Hamano <gitster@pobox.com>2008-08-03 22:14:35 +0200
commit43df4f86e035056605ceb757029181d7ddee1e7e (patch)
tree8b6e0b8bc97343fc34328fd44bd26bf0d60a165d /setup.c
parentMerge branch 'maint' (diff)
downloadgit-43df4f86e035056605ceb757029181d7ddee1e7e.tar.xz
git-43df4f86e035056605ceb757029181d7ddee1e7e.zip
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 'setup.c')
0 files changed, 0 insertions, 0 deletions