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

Re: [msysGit] Issue 332 in msysgit: .gitattributes dir/ patterns are not processed

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Sep 21, 2009, 21:39 UTC
Message-ID
<20090921213916.GA47509@book.hvoigt.net>
In-Reply-To
<001636d33903a05b960474181c0a@google.com>
On Mon, Sep 21, 2009 at 03:26:55PM +0000, codesite-noreply@google.com wrote:
Show 25 quoted lines
> New issue 332 by vsuvo...@geolearning.com: .gitattributes dir/ patterns are  
> not processed
> http://code.google.com/p/msysgit/issues/detail?id=332
> 
> What steps will reproduce the problem?
> 1. Create a project and initialize git:
>     md foo
>     cd foo
>     git init
> 
> 2. create subdirectory and a file in it:
>     md bar
>     echo sample text >bar\testfile.txt
> 
> 3. create .gitatributes, add/commit it:
>     echo bar/ binary >.gitattributes
>     git add .gitattributes
>     git commit -m "ground zero"
> 
> 4. check bar\testfile.txt
>     git check-attr binary bar/testfile.txt
> 
> What is the expected output? What do you see instead?
> expected output: "bar/testfile.txt": binary: set
> see instead:     "bar/testfile.txt": binary: unspecified

This issue came up on the msysgit bug tracker. So here is either the documentation wrong or the implementation.

Because it does not make sense to specify any attributes to directories itself I would expect the contents of the directory to get the attributes.

What do you think?
cheers Heiko
Message 1 of 1 in “Re: [msysGit] Issue 332 in msysgit: .gitattributes dir/ patterns are not processed”
  1. Heiko VoigtSep 21, 2009

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.