Feature Request: git_status_list_new for single folder - non recursive
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 10.6k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
this is a follow up from stackoverflow.
With git CLI I can query the status for a single folder non recursive by using a glob pattern like so:
git status ':(glob)*' // matches root but no subdirectories
git status ':(glob)myFolder/*' // matches myFolder but no subdirectories
I'd love to do the same using git_status_list_new. Using the pathspec property on git_status_options I don't see a way to achieve this.
Passing * and myFolder/* computes the status for the entire project and for myFolder recursively.
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 with the git_status_list_new API, git_status_options, and its pathspec handling; compare their behavior with the git CLI glob examples in the issue. Done means a caller can request root-level or single-folder entries without recursively including subdirectories, with coverage for both examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, git
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100