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

Re: [PATCH 2/2] Attr: Allow macros to override earlier attributes.

From
HGHenrik Grubbström <grubba@roxen.com>
Date
Apr 2, 2010, 19:23 UTC
Message-ID
<Pine.GSO.4.63.1004022118300.26349@shipon.roxen.com>
In-Reply-To
<f02815e3761a8050aa76f46cd19288e72da14206.1270216006.git.grubba@grubba.org>
On Fri, 2 Apr 2010, Henrik Grubbström (Grubba) wrote:
Show 8 quoted lines
> Macros need to be able to override earlier attribute values.
> Consider a .gitattributes file with the following content:
>
> [attr]mybinary	binary -ident
> *		ident
> foo.bin		mybinary
>
> Without this patch foo.bin will still have the ident attribute set.

On closer thought, the approach taken by this patch wasn't a good idea, since it doesn't handle the case:

bar.bin		mybinary ident

-- Henrik Grubbström grubba@roxen.com Roxen Internet Software AB

Previous: Henrik Grubbström (Grubba)
Message 3 of 3 in “Attr: Fixed debug output for macro expansion.”
  1. 1/2 Attr: Fixed debug output for macro expansion.Henrik Grubbström (Grubba), Apr 2, 2010
  2. 2/2 Attr: Allow macros to override earlier attributes.Henrik Grubbström (Grubba), Apr 2, 2010
  3. Henrik GrubbströmApr 2, 2010

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.