summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 188a634)
raw | patch | inline | side by side (parent: 188a634)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 5 May 2006 10:20:44 +0000 (03:20 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 5 May 2006 22:24:12 +0000 (15:24 -0700) |
One of my post-update scripts runs a git-fetch into a separate
repository and sends the results back to me (2>&1); I end up
getting this in the mail:
Generating pack...
Done counting 180 objects.
Result has 131 objects.
Deltifying 131 objects.
0% (0/131) done^M 1% (2/131) done^M...
This defaults not to do the progress report when not on a tty.
You could give --progress to force the progress report, but
let's not bother even documenting it nor mentioning it in the
usage string.
Signed-off-by: Junio C Hamano <junkio@cox.net>
repository and sends the results back to me (2>&1); I end up
getting this in the mail:
Generating pack...
Done counting 180 objects.
Result has 131 objects.
Deltifying 131 objects.
0% (0/131) done^M 1% (2/131) done^M...
This defaults not to do the progress report when not on a tty.
You could give --progress to force the progress report, but
let's not bother even documenting it nor mentioning it in the
usage string.
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 66043381317b118dd525d547479d81b75d6b89f8..53caed42dd2778e96cb39d8ba8b9cb175bdf1303 100644 (file)
--- a/pack-objects.c
+++ b/pack-objects.c
setup_git_directory();
+ progress = isatty(2);
for (i = 1; i < argc; i++) {
const char *arg = argv[i];
usage(pack_usage);
continue;
}
+ if (!strcmp("--progress", arg)) {
+ progress = 1;
+ continue;
+ }
if (!strcmp("-q", arg)) {
progress = 0;
continue;