Re: [PATCH v4 2/5] name-rev: extend --refs to accept multiple patterns

2017-01-19 Thread Jacob Keller
On Thu, Jan 19, 2017 at 1:06 PM, Junio C Hamano wrote: > Jacob Keller writes: > >> From: Jacob Keller >> >> Teach git name-rev to take multiple --refs stored as a string list of >> patterns. The list of patterns will be

Re: [PATCH v4 2/5] name-rev: extend --refs to accept multiple patterns

2017-01-19 Thread Jacob Keller
On Thu, Jan 19, 2017 at 1:06 PM, Junio C Hamano wrote: > Jacob Keller writes: > >> From: Jacob Keller >> >> Teach git name-rev to take multiple --refs stored as a string list of >> patterns. The list of patterns will be

Re: [PATCH v4 2/5] name-rev: extend --refs to accept multiple patterns

2017-01-19 Thread Junio C Hamano
Jacob Keller writes: > From: Jacob Keller > > Teach git name-rev to take multiple --refs stored as a string list of > patterns. The list of patterns will be matched inclusively, and each ref > only needs to match one pattern to be included. A

Re: [PATCH v4 2/5] name-rev: extend --refs to accept multiple patterns

2017-01-19 Thread Junio C Hamano
Jacob Keller writes: > + if (data->ref_filters.nr) { > + struct string_list_item *item; > + int matched = 0; > + > + /* See if any of the patterns match. */ > + for_each_string_list_item(item, >ref_filters) { > +