Document the -n command-line option to git-unpack-objects
This patch documents the -n command-line option to git-unpack-objects, as it was previously undocumented. Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
Nikolai Weibull committed
Nov 15, 2005 at 00:20 UTC
b2309b70197f9067cb32a620465a9b3477d8f0c3
2 files changed
+6
-2
Documentation/git-unpack-objects.txt
+5
-1
@@ -8,7 +8,7 @@ git-unpack-objects - Unpack objects from a packed archive.
8
9
SYNOPSIS
10
--------
11
-'git-unpack-objects' [-q] <pack-file
11
+'git-unpack-objects' [-n] [-q] <pack-file
12
13
14
DESCRIPTION
@@ -19,6 +19,10 @@ one-object" format in $GIT_OBJECT_DIRECTORY.
19
20
OPTIONS
21
-------
22
+-n::
23
+ Only list the objects that would be unpacked, don't actually unpack
24
+ them.
25
+
26
-q::
27
The command usually shows percentage progress. This
28
flag suppresses it.
unpack-objects.c
+1
-1
@@ -6,7 +6,7 @@
6
#include <sys/time.h>
7
8
static int dry_run, quiet;
9
-static const char unpack_usage[] = "git-unpack-objects [-q] < pack-file";
9
+static const char unpack_usage[] = "git-unpack-objects [-n] [-q] < pack-file";
10
11
/* We always read in 4kB chunks. */
12
static unsigned char buffer[4096];