aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Weibull <mailing-lists.git@rawuncut.elitemail.org>2005-11-15 00:20:01 +0100
committerJunio C Hamano <junkio@cox.net>2005-11-14 17:15:32 -0800
commitb2309b70197f9067cb32a620465a9b3477d8f0c3 (patch)
treecc9ff4c6e20496c673115266a837b4eb8b31abfa
parent9add69b1b1f76db874ed899c46fbe0b252aa3c23 (diff)
downloadgit-b2309b70197f9067cb32a620465a9b3477d8f0c3.tar.gz
git-b2309b70197f9067cb32a620465a9b3477d8f0c3.tar.xz
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>
-rw-r--r--Documentation/git-unpack-objects.txt6
-rw-r--r--unpack-objects.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/Documentation/git-unpack-objects.txt b/Documentation/git-unpack-objects.txt
index b716ba1ad..31ea34d22 100644
--- a/Documentation/git-unpack-objects.txt
+++ b/Documentation/git-unpack-objects.txt
@@ -8,7 +8,7 @@ git-unpack-objects - Unpack objects from a packed archive.
SYNOPSIS
--------
-'git-unpack-objects' [-q] <pack-file
+'git-unpack-objects' [-n] [-q] <pack-file
DESCRIPTION
@@ -19,6 +19,10 @@ one-object" format in $GIT_OBJECT_DIRECTORY.
OPTIONS
-------
+-n::
+ Only list the objects that would be unpacked, don't actually unpack
+ them.
+
-q::
The command usually shows percentage progress. This
flag suppresses it.
diff --git a/unpack-objects.c b/unpack-objects.c
index 8ae1a1c0f..8490895cf 100644
--- 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 [-q] < pack-file";
+static const char unpack_usage[] = "git-unpack-objects [-n] [-q] < pack-file";
/* We always read in 4kB chunks. */
static unsigned char buffer[4096];