summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2008-03-04 03:27:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-03-05 07:28:14 (GMT)
commitf0a24aa56e49a5cb03101ead0211c7080b96c9f1 (patch)
treeff9ae51a0725c8843174d73e59018dc792ad594a /Documentation
parentcf7f929a10f141d319d47c68646c88d5911de777 (diff)
downloadgit-f0a24aa56e49a5cb03101ead0211c7080b96c9f1.zip
git-f0a24aa56e49a5cb03101ead0211c7080b96c9f1.tar.gz
git-f0a24aa56e49a5cb03101ead0211c7080b96c9f1.tar.bz2
git-pack-objects: Automatically pack annotated tags if object was packed
The new option "--include-tag" allows the caller to request that any annotated tag be included into the packfile if the object the tag references was also included as part of the packfile. This option can be useful on the server side of a native git transport, where the server knows what commits it is including into a packfile to update the client. If new annotated tags have been introduced then we can also include them in the packfile, saving the client from needing to request them through a second connection. This change only introduces the backend option and provides a test. Protocol extensions to make this useful in fetch-pack/upload-pack are still necessary to activate the logic during transport. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-pack-objects.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-pack-objects.txt b/Documentation/git-pack-objects.txt
index 5c1bd3b..eed0a94 100644
--- a/Documentation/git-pack-objects.txt
+++ b/Documentation/git-pack-objects.txt
@@ -73,6 +73,11 @@ base-name::
as if all refs under `$GIT_DIR/refs` are specified to be
included.
+--include-tag::
+ Include unasked-for annotated tags if the object they
+ reference was included in the resulting packfile. This
+ can be useful to send new tags to native git clients.
+
--window=[N], --depth=[N]::
These two options affect how the objects contained in
the pack are stored using delta compression. The