diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2011-11-07 09:59:26 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-11-06 20:31:28 -0800 |
commit | 1e49f22f07881dffc04f8f09d4ad4e4a65b85b09 (patch) | |
tree | bf5f7ec7b62dd9b8054f630a232b0b437c2d4d93 /pack.h | |
parent | c9486eb04dd99fc00df3e68f9b908f9ad7ff9728 (diff) | |
download | git-1e49f22f07881dffc04f8f09d4ad4e4a65b85b09.tar.gz |
fsck: print progressnd/fsck-progress
fsck is usually a long process and it would be nice if it prints
progress from time to time.
Progress meter is not printed when --verbose is given because
--verbose prints a lot, there's no need for "alive" indicator.
Progress meter may provide "% complete" information but it would
be lost anyway in the flood of text.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack.h')
-rw-r--r-- | pack.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -71,12 +71,13 @@ struct pack_idx_entry { }; +struct progress; typedef int (*verify_fn)(const unsigned char*, enum object_type, unsigned long, void*, int*); extern const char *write_idx_file(const char *index_name, struct pack_idx_entry **objects, int nr_objects, const struct pack_idx_option *, unsigned char *sha1); extern int check_pack_crc(struct packed_git *p, struct pack_window **w_curs, off_t offset, off_t len, unsigned int nr); extern int verify_pack_index(struct packed_git *); -extern int verify_pack(struct packed_git *, verify_fn fn); +extern int verify_pack(struct packed_git *, verify_fn fn, struct progress *, uint32_t); extern void fixup_pack_header_footer(int, unsigned char *, const char *, uint32_t, unsigned char *, off_t); extern char *index_pack_lockfile(int fd); extern int encode_in_pack_object_header(enum object_type, uintmax_t, unsigned char *); |