git-pack-objects: Automatically pack annotated tags if object was packed
commitf0a24aa56e49a5cb03101ead0211c7080b96c9f1
authorShawn O. Pearce <spearce@spearce.org>
Tue, 4 Mar 2008 03:27:20 +0000 (3 22:27 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Mar 2008 07:28:14 +0000 (4 23:28 -0800)
treeff9ae51a0725c8843174d73e59018dc792ad594a
parentcf7f929a10f141d319d47c68646c88d5911de777
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>
Documentation/git-pack-objects.txt
builtin-pack-objects.c
t/t5305-include-tag.sh [new file with mode: 0755]