Skip to content

Commit

Permalink
Document the -n command-line option to git-unpack-objects
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nikolai Weibull authored and Junio C Hamano committed Nov 15, 2005
1 parent 9add69b commit b2309b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Documentation/git-unpack-objects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion unpack-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit b2309b7

Please sign in to comment.