Parent path matched

Open
#7 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
tooling

Research direction

Reproduce the case from the issue using a project rooted at /home/caleb/projects/sile and a single ignore entry for sile. Trace the library's ignore-rule matching from its repository entry point, then verify that matching stops at the Git root and does not ignore everything under the parent folder.

Written by the indexing model from the issue text.

Description

For project directory /home/caleb/projects/sile my .gitigore file has a single line entry for sile to ignore generated file /home/caleb/projects/sile/sile. This rule is parsed by this library to ignore everything in that folder.

The parent folder should not be part of the matching. Stop at the git root.

Dominant language
JavaScript
Stars
7
Forks
5
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from bcoe/dotgitignore

All issues in bcoe/dotgitignore

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.