@matheusbsbs / matheus-bagliano / commits / 4321134cd8
Fork 0

pack-objects: document --revs, --unpacked and --all.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Sep 12, 2006 at 22:59 UTC 4321134cd85eabc5d4d07a7ce00d4cf6a02c38fb
2 files changed +21 -2
Documentation/git-pack-objects.txt
+20 -1
@@ -11,7 +11,7 @@ SYNOPSIS
11 [verse]
12 'git-pack-objects' [-q] [--no-reuse-delta] [--non-empty]
13 [--local] [--incremental] [--window=N] [--depth=N]
14 - {--stdout | base-name} < object-list
14 + [--revs [--unpacked | --all]*] [--stdout | base-name] < object-list
15
16
17 DESCRIPTION
@@ -56,6 +56,24 @@ base-name::
56 Write the pack contents (what would have been written to
57 .pack file) out to the standard output.
58
59 +--revs::
60 + Read the revision arguments from the standard input, instead of
61 + individual object names. The revision arguments are processed
62 + the same way as gitlink:git-rev-list[1] with `--objects` flag
63 + uses its `commit` arguments to build the list of objects it
64 + outputs. The objects on the resulting list are packed.
65 +
66 +--unpacked::
67 + This implies `--revs`. When processing the list of
68 + revision arguments read from the standard input, limit
69 + the objects packed to those that are not already packed.
70 +
71 +--all::
72 + This implies `--revs`. In addition to the list of
73 + revision arguments read from the standard input, pretend
74 + as if all refs under `$GIT_DIR/refs` are specifed to be
75 + included.
76 +
77 --window and --depth::
78 These two options affects how the objects contained in
79 the pack are stored using delta compression. The
@@ -103,6 +121,7 @@ Documentation by Junio C Hamano
121
122 See Also
123 --------
124 +gitlink:git-rev-list[1]
125 gitlink:git-repack[1]
126 gitlink:git-prune-packed[1]
127
builtin-pack-objects.c
+1 -1
@@ -15,7 +15,7 @@
15 #include <sys/time.h>
16 #include <signal.h>
17
18 -static const char pack_usage[] = "git-pack-objects [-q] [--no-reuse-delta] [--non-empty] [--local] [--incremental] [--window=N] [--depth=N] {--stdout | base-name} [--revs [--unpacked | --all]* <ref-list | <object-list]";
18 +static const char pack_usage[] = "git-pack-objects [-q] [--no-reuse-delta] [--non-empty] [--local] [--incremental] [--window=N] [--depth=N] [--revs [--unpacked | --all]*] [--stdout | base-name] <ref-list | <object-list]";
19
20 struct object_entry {
21 unsigned char sha1[20];