summaryrefslogtreecommitdiff
path: root/pack-objects.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-05-05 15:36:04 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-05-05 15:36:04 -0700
commit2749fa7771f2a4323b48b78fa194a90d611bc2d8 (patch)
tree1f3426fc3a5cb59c716ccb58e38e74432c7f79ea /pack-objects.c
parentMerge branch 'js/fmt-patch' into next (diff)
parentbinary diff: further updates. (diff)
downloadtgif-2749fa7771f2a4323b48b78fa194a90d611bc2d8.tar.xz
Merge branch 'jc/bindiff' into next
* jc/bindiff: binary diff: further updates. binary patch. pack-object: squelch eye-candy on non-tty core.prefersymlinkrefs: use symlinks for .git/HEAD repo-config: trim white-space before comment Fix for config file section parsing. Clarify git-cherry documentation. Update git-unpack-objects documentation. Fix up docs where "--" isn't displayed correctly. Several trivial documentation touch ups. git-svn 1.0.0 git-svn: documentation updates delta: stricter constness Makefile: do not link rev-list any specially. builtin-push: --all and --tags _are_ explicit refspecs
Diffstat (limited to 'pack-objects.c')
-rw-r--r--pack-objects.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pack-objects.c b/pack-objects.c
index 5b2ef9a513..523a1c7da8 100644
--- a/pack-objects.c
+++ b/pack-objects.c
@@ -1243,6 +1243,7 @@ int main(int argc, char **argv)
setup_git_directory();
+ progress = isatty(2);
for (i = 1; i < argc; i++) {
const char *arg = argv[i];
@@ -1273,6 +1274,10 @@ int main(int argc, char **argv)
usage(pack_usage);
continue;
}
+ if (!strcmp("--progress", arg)) {
+ progress = 1;
+ continue;
+ }
if (!strcmp("-q", arg)) {
progress = 0;
continue;