On 12/06, Stefan Beller wrote:
> On Tue, Dec 6, 2016 at 1:51 PM, Brandon Williams wrote:
>
> > struct strbuf sb = STRBUF_INIT;
> > - if (prefixlen && !literal_global) {
> > - /* Preserve the actual prefix length of each
> > pattern */
> > -
On Tue, Dec 6, 2016 at 1:51 PM, Brandon Williams wrote:
> struct strbuf sb = STRBUF_INIT;
> - if (prefixlen && !literal_global) {
> - /* Preserve the actual prefix length of each pattern
> */
> - if (short_magic)
> -
The logic used to prefix an original pathspec element with 'prefix'
magic is more general purpose and can be used for more than just short
magic. Remove the extra code paths and rename 'prefix_short_magic' to
'prefix_magic' to better indicate that it can be used in more general
situations.
Also,
3 matches
Mail list logo