summaryrefslogtreecommitdiff
path: root/connected.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-07-15 06:32:28 -0400
committerJunio C Hamano <gitster@pobox.com>2016-07-20 12:11:09 -0700
commit70d5e2d77b4c2afdb442b37924bc252793e106d9 (patch)
treeb02b7cd7456c2ea0e388bbd42684c97a14bf0948 /connected.h
parente0331849a081fe4919f4130540165ce7d7355748 (diff)
downloadgit-70d5e2d77b4c2afdb442b37924bc252793e106d9.tar.gz
check_connected: add progress flag
Connectivity checks have to traverse the entire object graph in the worst case (e.g., a full clone or a full push). For large repositories like linux.git, this can take 30-60 seconds, during which time git may produce little or no output. Let's add the option of showing progress, which is taken care of by rev-list. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'connected.h')
-rw-r--r--connected.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/connected.h b/connected.h
index 5d88e26c79..afa48cc052 100644
--- a/connected.h
+++ b/connected.h
@@ -30,6 +30,9 @@ struct check_connected_options {
* returns.
*/
int err_fd;
+
+ /* If non-zero, show progress as we traverse the objects. */
+ int progress;
};
#define CHECK_CONNECTED_INIT { 0 }