libgit2 / libgit2/libgit2sharp

Make LibGit2Sharp aware of external changes to the index

Open
#526 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Easy fix Up for grabs
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.