Re: How do I qualify paths in the .gitignore file w.r.t. the repo root directory?

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

 



Sitaram Chamarty <sitaramc@xxxxxxxxx> writes:

> How about this:
>
> ----8<----
>
>     - an optional leading ! symbol meaning "unignore paths
>       that match this pattern, instead of ignoring them"
>
>     - an optional trailing / symbol meaning "this pattern
>       matches only with a directory (i.e., files and
>       symlinks won't match)"
>
>     - the above two symbols (if present) are then removed.
>       What remains is treated as a normal shell glob
>       pattern, with the additional restriction that if the
>       pattern still contains a slash, it matches only at the
>       current directory and not in its subdirectories

Sure, but then you are not stripping the leading / from the pattern but
you do not use it for the purpose of matching, right?

I think your original before I wondered about the ambiguity is the best
rewrite so far.

--
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]

  Powered by Linux