libgit2 / pygit2

Python bindings for libgit2
https://www.pygit2.org/
Other
1.61k stars 385 forks source link

Staging reset #1065

Open Ruws99 opened 3 years ago

Ruws99 commented 3 years ago

Issue found that when I stage and commit in pygit2 the staged file list is not removed. This in turn causes the whole working directory to be cleared because the staged files is still present if "git status" is called. Is there a workaround? : Like Index.remove() after the version is staged and committed?

Ruws99 commented 3 years ago

A conceptual mistake was made on my part. The problem I am having is staging the whole folder contents rather than just staging new or changed files. Any help in achieving this efficiently will be much appreciated

Ruws99 commented 3 years ago

The problem is still present. After the changes are committed with command line the "git status" states that branch is up to date. If the same is done with pygit2 the "git status" still shows that there are changes to be committed. So I presume that I need to remove all files from the index after committing. Am I correct or am I missing something?