summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9add69b)
raw | patch | inline | side by side (parent: 9add69b)
author | Nikolai Weibull <mailing-lists.git@rawuncut.elitemail.org> | |
Mon, 14 Nov 2005 23:20:01 +0000 (00:20 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 15 Nov 2005 01:15:32 +0000 (17:15 -0800) |
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>
as it was previously undocumented.
Signed-off-by: Nikolai Weibull <nikolai@bitwi.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-unpack-objects.txt | patch | blob | history | |
unpack-objects.c | patch | blob | history |
index b716ba1ad35b400fd8c862145283a32298a94f4a..31ea34d2292a2eb31ec4532c021c11c7e0de3d99 100644 (file)
SYNOPSIS
--------
-'git-unpack-objects' [-q] <pack-file
+'git-unpack-objects' [-n] [-q] <pack-file
DESCRIPTION
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 8ae1a1c0fdab32e6c596872d857f40c5f87b97d4..8490895cf02df538327fa79bc0b2ffff2f06bd84 100644 (file)
--- a/unpack-objects.c
+++ b/unpack-objects.c
#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];