summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0dbc4e8)
raw | patch | inline | side by side (parent: 0dbc4e8)
author | Junio C Hamano <junkio@cox.net> | |
Sun, 12 Feb 2006 21:01:54 +0000 (13:01 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 12 Feb 2006 21:01:54 +0000 (13:01 -0800) |
You could give -q to squelch it, but currently no tool does it.
This would make 'git clone host:repo here' over ssh not silent
again.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This would make 'git clone host:repo here' over ssh not silent
again.
Signed-off-by: Junio C Hamano <junkio@cox.net>
pack-objects.c | patch | blob | history |
diff --git a/pack-objects.c b/pack-objects.c
index 2135e9a92e9289eb01e605888040f7d2b8bc9779..c5a5e61605b7aefde9fd3cc8c43a085156671bc9 100644 (file)
--- a/pack-objects.c
+++ b/pack-objects.c
#include "csum-file.h"
#include <sys/time.h>
-static const char pack_usage[] = "git-pack-objects [--non-empty] [--local] [--incremental] [--window=N] [--depth=N] {--stdout | base-name} < object-list";
+static const char pack_usage[] = "git-pack-objects [-q] [--non-empty] [--local] [--incremental] [--window=N] [--depth=N] {--stdout | base-name} < object-list";
struct object_entry {
unsigned char sha1[20];
static int nr_objects = 0, nr_alloc = 0;
static const char *base_name;
static unsigned char pack_file_sha1[20];
-static int progress = 0;
+static int progress = 1;
static void *delta_against(void *buf, unsigned long size, struct object_entry *entry)
{
usage(pack_usage);
continue;
}
+ if (!strcmp("-q", arg)) {
+ progress = 0;
+ continue;
+ }
if (!strcmp("--stdout", arg)) {
pack_to_stdout = 1;
continue;
if (pack_to_stdout != !base_name)
usage(pack_usage);
- progress = isatty(2);
-
prepare_packed_git();
if (progress) {
fprintf(stderr, "Generating pack...\n");