Skip to content
  • Jeff Hostetler's avatar
    pack-objects: add list-objects filtering · 9535ce73
    Jeff Hostetler authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Teach pack-objects to use the filtering provided by the
    traverse_commit_list_filtered() interface to omit unwanted
    objects from the resulting packfile.
    
    Filtering requires the use of the "--stdout" option.
    
    Add t5317 test.
    
    In the future, we will introduce a "partial clone" mechanism
    wherein an object in a repo, obtained from a remote, may
    reference a missing object that can be dynamically fetched from
    that remote once needed.  This "partial clone" mechanism will
    have a way, sometimes slow, of determining if a missing link
    is one of the links expected to be produced by this mechanism.
    
    This patch introduces handling of missing objects to help
    debugging and development of the "partial clone" mechanism,
    and once the mechanism is implemented, for a power user to
    perform operations that are missing-object aware without
    incurring the cost of checking if a missing link is expected.
    
    Signed-off-by: default avatarJeff Hostetler <jeffhost@microsoft.com>
    Reviewed-by: default avatarJonathan Tan <jonathantanmy@google.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    9535ce73