libgit2 / libgit2/libgit2sharp
Make LibGit2Sharp aware of external changes to the index
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
With #525 a new method ReloadFromDisk() has been added to the Index which overwrites its content with the state of the on-disk index file.
RetrieveStatus already calls this method.
This method call should be deployed to many more methods: most of the Index methods along with some other ones (Commit, Stash, Reset, ...).
Maybe the first step of this change would be to try to list all the candidates...
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 by reviewing the Index methods and the existing ReloadFromDisk() call in RetrieveStatus, then compare them with the other entry points named in the issue: Commit, Stash, and Reset. Done means identifying the affected methods and ensuring they account for external on-disk index changes; the issue does not name specific files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, git
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100