libgit2 / libgit2/libgit2sharp

fileName include "[]" can't be Ignored

Open
#1,862 4 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.