• Jeff Hostetler's avatar
    list-objects: filter objects in traverse_commit_list · 25ec7bca
    Jeff Hostetler authored
    Create traverse_commit_list_filtered() and add filtering
    interface to allow certain objects to be omitted from the
    Update traverse_commit_list() to be a wrapper for the above
    with a null filter to minimize the number of callers that
    needed to be changed.
    Object filtering will be used in a future commit by rev-list
    and pack-objects for partial clone and fetch to omit unwanted
    objects from the result.
    traverse_bitmap_commit_list() does not work with filtering.
    If a packfile bitmap is present, it will not be used.  It
    should be possible to extend such support in the future (at
    least to simple filters that do not require object pathnames),
    but that is beyond the scope of this patch series.
    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>
list-objects.h 670 Bytes