Stage/apply lines
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.1k
- Forks
- 450
- Avg merge
- 11m
- Merged PRs (30d)
- 1
Description
It's an useful feature in git (gui) clients to be able to select individual lines to stage and commit, not just hunks or files. I saw that nodegit implemented it a good while back. Can git2-rs have a feature like that too?
nodegit seems to be replacing the selected lines in the affected blob and then calculating a new diff based on that.
If it's not against some design principle of git2-rs, I'd be happy to implement it too with some design guidance.
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
Review nodegit PR 678 and the git2-rs staging interfaces to understand how selected lines could be represented and applied. Define the design and confirm that individual lines can be staged and committed without requiring whole hunks or files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, rust
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100