From d5ef38a5a067d508a12a9ee5f22d919f57b73c96 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Wed, 18 Mar 2020 17:26:38 +0100 Subject: [PATCH] support unstaging --- README.md | 2 +- src/git_utils.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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(