Supporting gitattributes and filters in blob retrieval
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 2.3k
- Forks
- 293
- PR merge metrics
- No merged PRs in 30d
Description
I noticed that nothing in Rugged::Blob makes any attempt to convert blob text to the filtered output via .gitattributes (e.g. CRLF output). In libgit2, I see calls to git_blob_filtered_content(), but it does not appear to be used anywhere Rugged.
Is there a reason this isn't supported, or is this just something I can add?
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.
Research direction
Start at the Rugged::Blob blob-retrieval path and compare it with libgit2's git_blob_filtered_content() usage in tests/filter/blob.c. Determine the project’s expected behavior for .gitattributes filters, then verify that filtered output is returned for the relevant blob cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, git, ruby
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100