forked from libgit2/libgit2sharp
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Index.Remove() cope with files which have been deleted from the …
…working directory Fixes issue libgit2#95 - 1/2. One can GitRemove a file which has been deleted from the workdir $ mkdir test $ cd test $ git init . $ echo "a" > a.txt $ git add . $ git commit -m "Initial commit" $ git status nothing to commit (working directory clean) $ rm a.txt $ git status On branch master Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) deleted: a.txt $ git rm a.txt $ git status On branch master Changes to be committed: (use "git reset HEAD <file>..." to unstage) deleted: a.txt
- Loading branch information
Showing
2 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters