diff options
author | Daniel Barkalow <barkalow@iabervon.org> | 2005-12-10 17:25:24 -0500 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-12-10 18:57:57 -0800 |
commit | 024510c8d947be6ae4765840e21a89d5a21271c4 (patch) | |
tree | 3a0912f20177e68e9e1e0e60b3aaea46ddc2fa32 /cache.h | |
parent | 10945e006a9567f4da1dac15cfdc1035752c5c5e (diff) | |
download | git-024510c8d947be6ae4765840e21a89d5a21271c4.tar.gz |
Allow saving an object from a pipe
In order to support getting data into git with scripts, this adds a
--stdin option to git-hash-object, which will make it read from stdin.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -144,6 +144,7 @@ extern int ce_match_stat(struct cache_entry *ce, struct stat *st); extern int ce_modified(struct cache_entry *ce, struct stat *st); 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, const char *type); +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); |