threads / patch / 1479

patchUpdate unpack-objects usage and documentation.

Subject: [PATCH] Update unpack-objects usage and documentation.

## tl;dr

One message between Aug 12, 2005 and Aug 12, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Junio C Hamano· Aug 12, 2005, 09:41 UTC · lore

It long supported -q flag to suppress progress meter without properly being documented. ---

 Documentation/git-unpack-objects.txt |    8 +++++++-
 unpack-objects.c                     |    2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)
7d4cacb2e5ba94c45c3d5438c1703d0ea80d4ef1
Show changes to 2 files +8 −2

Documentation/git-unpack-objects.txt, unpack-objects.c

diff --git a/Documentation/git-unpack-objects.txt b/Documentation/git-unpack-objects.txt
--- a/Documentation/git-unpack-objects.txt
+++ b/Documentation/git-unpack-objects.txt
@@ -9,7 +9,7 @@ git-unpack-objects - Unpack objects from
 
 SYNOPSIS
 --------
-'git-unpack-objects' < pack-file
+'git-unpack-objects' [-q] <pack-file
 
 
 DESCRIPTION
@@ -18,6 +18,12 @@ Reads a packed archive (.pack) from the 
 expands the objects contained in the pack into "one-file
 one-object" format in $GIT_OBJECT_DIRECTORY.
 
+OPTIONS
+-------
+-q::
+	The command usually shows percentage progress.  This
+	flag suppresses it.
+
 
 Author
 ------
diff --git a/unpack-objects.c b/unpack-objects.c
--- a/unpack-objects.c
+++ b/unpack-objects.c
@@ -6,7 +6,7 @@
 #include <sys/time.h>
 
 static int dry_run, quiet;
-static const char unpack_usage[] = "git-unpack-objects < pack-file";
+static const char unpack_usage[] = "git-unpack-objects [-q] < pack-file";
 
 /* We always read in 4kB chunks. */
 static unsigned char buffer[4096];

← back to recent threads