Skip to contentSkip to conversation

Issue 332 in msysgit: .gitattributes dir/ patterns are not processed

msysGit Heiko Voigt 1 participant 1 message Jun 15, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 19 lines · On Mon, Sep 21, 2009 at 03:26:55PM +0000, [email protected] wrote:

New issue 332 by [email protected]: .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"

Quoted 6 lines

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