altsem / gitu

A TUI Git client inspired by Magit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discarding staged new file is not working

golden-expiriensu opened this issue · comments

Reproduction:

 danil   fix/stash-worktree  ~/offw/rust/gitu  echo "meowmeow" > cat.txt
 danil   fix/stash-worktree ?:1  ~/offw/rust/gitu  gitu -k "jsjKy<enter>"

Yields error:
Screenshot from 2024-04-05 13-32-21

I think we want to git restore --staged <file> followed by std::fs::remove_file(file), right?