@matheusbsbs / matheus-bagliano / commits / 63ae26f87a
Fork 0

Document the --non-empty command-line option to git-pack-objects.

This provides (minimal) documentation for the --non-empty command-line option to the pack-objects command. Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>

Nikolai Weibull committed Dec 9, 2005 at 00:28 UTC 63ae26f87ae1d3a95a8ecc2fc761b7a7987e3ce5
2 files changed +6 -2
Documentation/git-pack-objects.txt
+5 -1
@@ -8,7 +8,7 @@ git-pack-objects - Create a packed archive of objects.
8
9 SYNOPSIS
10 --------
11 -'git-pack-objects' [--local] [--incremental] [--window=N] [--depth=N] {--stdout | base-name} < object-list
11 +'git-pack-objects' [--non-empty] [--local] [--incremental] [--window=N] [--depth=N] {--stdout | base-name} < object-list
12
13
14 DESCRIPTION
@@ -70,6 +70,10 @@ base-name::
70 that are packed and not in the local object store
71 (i.e. borrowed from an alternate).
72
73 +--non-empty::
74 + Only create a packed archive if it would contain at
75 + least one object.
76 +
77 Author
78 ------
79 Written by Linus Torvalds <torvalds@osdl.org>
pack-objects.c
+1 -1
@@ -4,7 +4,7 @@
4 #include "pack.h"
5 #include "csum-file.h"
6
7 -static const char pack_usage[] = "git-pack-objects [--local] [--incremental] [--window=N] [--depth=N] {--stdout | base-name} < object-list";
7 +static const char pack_usage[] = "git-pack-objects [--non-empty] [--local] [--incremental] [--window=N] [--depth=N] {--stdout | base-name} < object-list";
8
9 struct object_entry {
10 unsigned char sha1[20];