1. Stefan Saasen
  2. git


Nikolai Weibull  committed b2309b7

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>

  • Participants
  • Parent commits 9add69b
  • Branches master

Comments (0)

Files changed (2)

File Documentation/git-unpack-objects.txt

View file
  • Ignore whitespace
-'git-unpack-objects' [-q] <pack-file
+'git-unpack-objects' [-n] [-q] <pack-file
+        Only list the objects that would be unpacked, don't actually unpack
+        them.
 	The command usually shows percentage progress.  This
 	flag suppresses it.

File unpack-objects.c

View file
  • Ignore whitespace
 #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];