Re: Wrong gitattributes documentation?
- From
- Rene Pasing <rene@pasing.net>
- Date
- Jun 3, 2017, 01:20 UTC
- Message-ID
- <2dc4c436-0886-ec05-7a4f-e051bbfbc49f@pasing.net>
- In-Reply-To
- <xmqq8tlax7lm.fsf@gitster.mtv.corp.google.com>
On 06/03/2017 02:01 AM, Junio C Hamano wrote:
> Your "/images/*" is the "Otherwise" case, isn't it?
Ok, sorry, didn't read your answer thoroughly enough the first time.
The problem is, when I have an entry in .gitignore like this: /images
Then git will ignore that whole directory (and all of its subfolders etc.). Git will just ignore everything in the tree starting with that pathname.
But when I use the same pattern ('/images') in .gitattributes I would expect (due to the documentation) that git-lfs will be called for all files+subfolders+subfolderfiles and even the folder itself (this is what I understand from 'The rules how the pattern matches paths are the same as in .gitignore files').
This does not seem to be the case!
Sorry again for the confusion.