libgit2 / libgit2/libgit2sharp
fileName include "[]" can't be Ignored
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
.gitignore inside the repo has:
[i].t
aa.json
Code
var status=repository.RetrieveStatus(@"D:\repo[i].t") //status =NewinWorkdir
var status2=repository.RetrieveStatus(@"D:\repoaa.json") //status2 =Ignored
Contributor guide
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 Repository.RetrieveStatus and the ignore-pattern handling used for .gitignore entries. Reproduce the two paths from the issue, then verify that the escaped bracket pattern ignores [i].t as well as aa.json.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, git
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100