git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Wrong gitattributes documentation?

From
RPRene 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.
Previous: Rene Pasing
Message 4 of 4 in “Wrong gitattributes documentation?”
  1. Rene PasingJun 2, 2017
  2. Junio C HamanoJun 3, 2017
  3. Rene PasingJun 3, 2017
  4. Rene PasingJun 3, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.