Skip to contentSkip to conversation

Update unpack-objects usage and documentation.

PATCH New Junio C Hamano 1 participant 1 message Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Update unpack-objects usage and documentation.

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

Documentation/git-unpack-objects.txt +7 -1
@@ -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
 ------
unpack-objects.c +1 -1
@@ -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];