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

Re: gitattributes don't work

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 4, 2011, 18:33 UTC
Message-ID
<7vbp3wh639.fsf@alter.siamese.dyndns.org>
In-Reply-To
<ifr610$3kl$1@dough.gmane.org>
Marcin Wiśnicki <mwisnicki@gmail.com> writes:
Show 10 quoted lines
> I'm trying to exclude certain paths (those that contain "xmac/gen/") from 
> diff output using .git/info/attributes (not .gitattributes).
>
> According to gitattributes(5) it supports patterns from gitignore(5).
>
> Example path that must be excluded:
> src/byucc/jhdl/CSRC/xmac/gen/and2_dp_g.xmac
>
> What I've tried but didn't work:
> xmac/gen/ -diff
Why not "xmac/gen/* -diff" or even "xmac/gen/*.xmac -diff"?
Previous: Marcin Wiśnicki
Message 5 of 5 in “gitattributes don't work”
  1. Marcin WiśnickiJan 3, 2011
  2. Jonathan NiederJan 3, 2011
  3. Nguyen Thai Ngoc DuyJan 3, 2011
  4. Marcin WiśnickiJan 4, 2011
  5. Junio C HamanoJan 4, 2011

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.