Skip to content
  • Matthew DeVore's avatar
    list-objects-filter: implement composite filters · e987df5f
    Matthew DeVore authored and Junio C Hamano's avatar Junio C Hamano committed
    Allow combining filters such that only objects accepted by all filters
    are shown. The motivation for this is to allow getting directory
    listings without also fetching blobs. This can be done by combining
    blob:none with tree:<depth>. There are massive repositories that have
    larger-than-expected trees - even if you include only a single commit.
    
    A combined filter supports any number of subfilters, and is written in
    the following form:
    
    	combine:<filter 1>+<filter 2>+<filter 3>
    
    Certain non-alphanumeric characters in each filter must be
    URL-encoded.
    
    For now, combined filters must be specified in this form. In a
    subsequent commit, rev-list will support multiple --filter arguments
    which will have the same effect as specifying one filter argument
    starting with "combine:". The documentation will be updated in that
    commit, as the URL-encoding scheme is in general not meant to be used
    directly by the user, and it is better to describe the URL-encoding
    feature in te...
    e987df5f