# [PATCH 0/17] Documentation fixes in response to my previous listing

2 messages from 2005-12-08 to 2005-12-08. Participants: Nikolai Weibull.
Thread: https://gitlist.dev/t/2781

## Nikolai Weibull, 2005-12-08 23:28

Subject: [PATCH 0/17] Documentation fixes in response to my previous listing
Message-ID: <11340844841342-git-send-email-mailing-lists.git@rawuncut.elitemail.org>
URL: https://gitlist.dev/e/11340844841342-git-send-email-mailing-lists.git%40rawuncut.elitemail.org

```
This is a series of patches that fix small issues with the documentation.
This includes missing option-aliases, missing options, and broken formatting.

        nikolai

---
 Documentation/git-am.txt                 |    2 +-
 Documentation/git-cherry-pick.txt        |    6 ++---
 Documentation/git-commit.txt             |   18 +++++++++-----
 Documentation/git-cvsimport.txt          |    2 +-
 Documentation/git-format-patch.txt       |   23 +++++++++++++----
 Documentation/git-http-fetch.txt         |    6 +++++
 Documentation/git-ls-remote.txt          |    2 +-
 Documentation/git-merge-index.txt        |    2 +-
 Documentation/git-pack-objects.txt       |    6 ++++-
 Documentation/git-prune.txt              |   10 +++++++-
 Documentation/git-read-tree.txt          |    2 +-
 Documentation/git-repack.txt             |    9 ++++++-
 Documentation/git-revert.txt             |    4 ++-
 Documentation/git-show-branch.txt        |    8 +++++-
 Documentation/git-tag.txt                |   40 +++++++++++++++---------------
 Documentation/git-update-server-info.txt |    2 +-
 Documentation/git-verify-pack.txt        |    4 ++-
 git-revert.sh                            |    2 +-
 pack-objects.c                           |    2 +-
 show-branch.c                            |    2 +-
 20 files changed, 101 insertions(+), 51 deletions(-)

```

## Nikolai Weibull, 2005-12-08 23:28

Subject: [PATCH 1/17] Document the --non-empty command-line option to git-pack-objects.
Message-ID: <11340844853669-git-send-email-mailing-lists.git@rawuncut.elitemail.org>
URL: https://gitlist.dev/e/11340844853669-git-send-email-mailing-lists.git%40rawuncut.elitemail.org
In-Reply-To: <11340844841342-git-send-email-mailing-lists.git@rawuncut.elitemail.org>

```
This provides (minimal) documentation for the --non-empty command-line
option to the pack-objects command.

Signed-off-by: Nikolai Weibull <nikolai@bitwi.se>

---

 Documentation/git-pack-objects.txt |    6 +++++-
 pack-objects.c                     |    2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

50543554f2945443c10434fcfe6689bc7cc5c3e8
diff --git a/Documentation/git-pack-objects.txt b/Documentation/git-pack-objects.txt
index d1e93db..009ec5a 100644
--- a/Documentation/git-pack-objects.txt
+++ b/Documentation/git-pack-objects.txt
@@ -8,7 +8,7 @@ git-pack-objects - Create a packed archi
 
 SYNOPSIS
 --------
-'git-pack-objects' [--local] [--incremental] [--window=N] [--depth=N] {--stdout | base-name} < object-list
+'git-pack-objects' [--non-empty] [--local] [--incremental] [--window=N] [--depth=N] {--stdout | base-name} < object-list
 
 
 DESCRIPTION
@@ -70,6 +70,10 @@ base-name::
 	that are packed and not in the local object store
 	(i.e. borrowed from an alternate).
 
+--non-empty::
+        Only create a packed archive if it would contain at
+        least one object.
+
 Author
 ------
 Written by Linus Torvalds <torvalds@osdl.org>
diff --git a/pack-objects.c b/pack-objects.c
index a62c9f8..caf3b6b 100644
--- a/pack-objects.c
+++ b/pack-objects.c
@@ -4,7 +4,7 @@
 #include "pack.h"
 #include "csum-file.h"
 
-static const char pack_usage[] = "git-pack-objects [--local] [--incremental] [--window=N] [--depth=N] {--stdout | base-name} < object-list";
+static const char pack_usage[] = "git-pack-objects [--non-empty] [--local] [--incremental] [--window=N] [--depth=N] {--stdout | base-name} < object-list";
 
 struct object_entry {
 	unsigned char sha1[20];
-- 
0.99.9l

```
