mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
checkout: make delayed checkout respect --quiet and --no-progress
The 'Filtering contents...' progress report from delayed checkout is displayed even when checkout and clone are invoked with --quiet or --no-progress. Furthermore, it is displayed unconditionally, without first checking whether stdout is a tty. Let's fix these issues and also add some regression tests for the two code paths that currently use delayed checkout: unpack_trees.c:check_updates() and builtin/checkout.c:checkout_worktree(). Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
225bc32a98
commit
7a132c628e
3
entry.h
3
entry.h
@@ -43,7 +43,8 @@ static inline int checkout_entry(struct cache_entry *ce,
|
||||
}
|
||||
|
||||
void enable_delayed_checkout(struct checkout *state);
|
||||
int finish_delayed_checkout(struct checkout *state, int *nr_checkouts);
|
||||
int finish_delayed_checkout(struct checkout *state, int *nr_checkouts,
|
||||
int show_progress);
|
||||
|
||||
/*
|
||||
* Unlink the last component and schedule the leading directories for
|
||||
|
||||
Reference in New Issue
Block a user