unpack-trees: add progress to clear_ce_flags()
When a large repository has many sparse-checkout patterns, the process for updating the skip-worktree bits can take long enough that a user gets confused why nothing is happening. Update the clear_ce_flags() method to write progress. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
eb42feca97
commit
4dcd4def3c
2
cache.h
2
cache.h
@ -304,6 +304,7 @@ static inline unsigned int canon_mode(unsigned int mode)
|
||||
|
||||
struct split_index;
|
||||
struct untracked_cache;
|
||||
struct progress;
|
||||
|
||||
struct index_state {
|
||||
struct cache_entry **cache;
|
||||
@ -326,6 +327,7 @@ struct index_state {
|
||||
uint64_t fsmonitor_last_update;
|
||||
struct ewah_bitmap *fsmonitor_dirty;
|
||||
struct mem_pool *ce_mem_pool;
|
||||
struct progress *progress;
|
||||
};
|
||||
|
||||
/* Name hashing */
|
||||
|
||||
Reference in New Issue
Block a user