Re: [BUG] gitignore documentation inconsistent with actual behaviour
- From
- dana <dana@dana.is>
- Date
- Oct 11, 2018, 10:37 UTC
- Message-ID
- <EB612DF5-EA44-4BB9-95D4-540E3F09FD0F@dana.is>
- In-Reply-To
- <C16A9F17-0375-42F9-90A9-A92C9F3D8BBA@dana.is>
On 11 Oct 2018, at 05:19, dana <dana@dana.is> wrote:
>git itself happily accepts these patterns, however, apparently treating the ** >like a single * without fnmatch(3)'s FNM_PATHNAME flag set (in other words, it >matches / as a regular character, thus crossing directory boundaries).
Sorry for replying to myself so quickly, but i think this bit is wrong. It seems like it actually just treats ** in this sort of pattern like a regular * — but i haven't studied the source very closely, so maybe that's not the full story either, i'm not sure.
dana