git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/3] Document the -n command-line option to git-unpack-objects

From
NWNikolai 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
Previous: Nikolai WeibullNext: Nikolai Weibull
Message 2 of 4 in “Documentation additions and fixes”
  1. 0/3 Documentation additions and fixesNikolai Weibull, Nov 14, 2005
  2. 1/3 Document the -n command-line option to git-unpack-objectsNikolai Weibull, Nov 14, 2005
  3. 2/3 Document a couple of missing command-line options.Nikolai Weibull, Nov 14, 2005
  4. 3/3 Documentation nitpickingNikolai Weibull, Nov 14, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.