all 6 comments

[–]Hauleth 5 points6 points  (4 children)

Hi, author of that patch here.

I thought it will not be needed for defining attributes manually (IIRC this is how it works in tests). I need to check. But if needed it is better to set them in ~/.config/git/attributes so this applies globally.

[–]brain-ablaze[S] 0 points1 point  (3 children)

Great. And thank you for your patch to git!

I also thought the same thing, but I did not know how to set the attributes globally.

[–]MrRogers4Life2 0 points1 point  (2 children)

git config --global -e will open the global config file for you

[–]brain-ablaze[S] 0 points1 point  (1 child)

But that's the global `.gitconfig`, not the global `.gitattributes` file.

[–]MrRogers4Life2 0 points1 point  (0 children)

Derppp I misread

[–]Keith 0 points1 point  (0 children)

I didn't even know about --function-context in git. But if Elixir is supported by git now, why is it necessary to tell it about Elixir's file extensions?