[PATCH 1/3] Document the -n command-line option to git-unpack-objects
- From
- Nikolai Weibull <mailing-lists.git@rawuncut.elitemail.org>
- Date
- Nov 14, 2005, 23:20 UTC
- Message-ID
- <11320104011582-git-send-email-mailing-lists.git@rawuncut.elitemail.org>
- In-Reply-To
- <11320104011696-git-send-email-mailing-lists.git@rawuncut.elitemail.org>
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>
---
Documentation/git-unpack-objects.txt | 6 +++++- unpack-objects.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-)
applies-to: 963d67921d6f65c08d51a8c93811f03274c34703 0d2b0b51463fe0fed667a7169b94d7ee52677e69
diff --git a/Documentation/git-unpack-objects.txt b/Documentation/git-unpack-objects.txt index b716ba1..31ea34d 100644 --- a/Documentation/git-unpack-objects.txt +++ b/Documentation/git-unpack-objects.txt @@ -8,7 +8,7 @@ git-unpack-objects - Unpack objects from 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_DIRECT 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 8ae1a1c..8490895 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]; --- 0.99.9g