Re: [PATCH] revision: introduce --exclude=<glob> to tame wildcards

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Aug 31, 2013 at 6:55 AM, Junio C Hamano <gitster@xxxxxxxxx> wrote:
> +static int ref_excluded(struct rev_info *revs, const char *path)
> +{
> +       struct string_list_item *item;
> +
> +       if (!revs->ref_excludes)
> +               return 0;
> +       for_each_string_list_item(item, revs->ref_excludes) {
> +               if (!fnmatch(item->string, path, 0))
> +                       return 1;
> +       }
> +       return 0;
> +}

If you pursue this, please use wildmatch instead so it supports "foo/**".
-- 
Duy
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]