Taking into account default git attributes with fetch_attributes()
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start at the Rugged implementation of repo.fetch_attributes(path) and compare its attribute lookup with git check-attr and the linked gitattributes documentation. Trace whether the behavior belongs in Rugged or libgit2; done means core.attributesFile, $HOME/.config/git/attributes, and $(prefix)/etc/gitattributes are honored when fetching attributes.
Written by the indexing model from the issue text.
Description
Rugged doesn't seem to aknowledge core.attributesFile (falling back to $HOME/.config/git/attributes) or $(prefix)/etc/gitattributes as specified in the docs when fetching attributes for a path with repo.fetch_attributes(path).
git check-attr handles that so this is either on Rugged side or libgit2 (against which I don't have the competence to test).
(related to https://github.com/github/linguist/issues/4283)
- Dominant language
- C
- Stars
- 2.3k
- Forks
- 293
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libgit2/rugged
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
kovidgoyal/kitty#10516 ·
-
libc
Difficulty 2/5 1-2 days Newbie friendliness 76/100
llvm/llvm-project#225506 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Status: Waiting triage Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
nanoframework/Home#1857 ·
-
bug
Difficulty 2/5 Half a day Newbie friendliness 82/100