support unstaging

This commit is contained in:
Stephan Dilly 2020-03-18 17:26:38 +01:00
parent 9ab8a9b970
commit d5ef38a5a0
2 changed files with 1 additions and 3 deletions

View File

@ -13,7 +13,7 @@ Over the last 2 years my go to GUI tool for this was [fork](https://git-fork.com
* [x] stage files
* [x] inspect diffs
* [x] commit
* [ ] allow selecting/diff index items
* [x] allow selecting/diff index items
* [ ] support unstaging
* [ ] polling in thread
* [ ] log view

View File

@ -164,8 +164,6 @@ pub fn stage_add(path: &Path) -> bool {
pub fn stage_reset(path: &Path) -> bool {
let repo = repo();
let mut index = repo.index().unwrap();
let reference = repo.head().unwrap();
let obj = repo
.find_object(