projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pack-object: squelch eye-candy on non-tty
[git.git]
/
pack-objects.c
diff --git
a/pack-objects.c
b/pack-objects.c
index
6604338
..
53caed4
100644
(file)
--- a/
pack-objects.c
+++ b/
pack-objects.c
@@
-1239,6
+1239,7
@@
int main(int argc, char **argv)
setup_git_directory();
setup_git_directory();
+ progress = isatty(2);
for (i = 1; i < argc; i++) {
const char *arg = argv[i];
for (i = 1; i < argc; i++) {
const char *arg = argv[i];
@@
-1269,6
+1270,10
@@
int main(int argc, char **argv)
usage(pack_usage);
continue;
}
usage(pack_usage);
continue;
}
+ if (!strcmp("--progress", arg)) {
+ progress = 1;
+ continue;
+ }
if (!strcmp("-q", arg)) {
progress = 0;
continue;
if (!strcmp("-q", arg)) {
progress = 0;
continue;