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

Bug report : gitattribute export-ignore behavior does not match documentation

From
Jean-Noël AVILA <avila.jn@gmail.com>
Date
Dec 1, 2012, 11:24 UTC
Message-ID
<201212011224.55686.avila.jn@gmail.com>
Tested on latest maint and master.

The 'export-ignore' gitattribute is documented as behaving on a pattern, just like in .gitignore.

In repo where I have a tree like this:

.gitattributes figures/ fr/figures/

I want to remove from archive all the figures directories. So I added 
figures/ export-ignore 
to the top level .gitattributes file.
but then:

$ git check-attr -a fr/figures $ git check-attr -a figures $

If I change the line in .gitattributes to :
figures export-ignore
I get the correct result, but I am not sure to exclude only directories.
Am I wrong somewhere?
Thank you.
Jean-Noël AVILA
Message 1 of 1 in “Bug report : gitattribute export-ignore behavior does not match documentation”
  1. Jean-Noël AVILADec 1, 2012

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.