diff --git a/README.md b/README.md index 1f654c7b..dd218f69 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/git_utils.rs b/src/git_utils.rs index c76b6ce1..a6a5a9f0 100644 --- a/src/git_utils.rs +++ b/src/git_utils.rs @@ -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(