Skip to content
  • Shawn O. Pearce's avatar
    git-pack-objects: Automatically pack annotated tags if object was packed · f0a24aa5
    Shawn O. Pearce authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarShawn O. Pearce <spearce@spearce.org>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    f0a24aa5