babusri <[email protected]> writes:

> Using magit 0.7
>
> revert-item worked fine initially. Now when I type 'v' on an unstaged
> file, I get "Git failed". I can stage the file with s. If I type 'v' I
> still get 'Git failed'.

Upps, should be fixed now.

This has never worked, I think.  When it seemed to work for you, you
have likely reverted individual hunks and not the whole diff.
Individual hunks use different code that didn't have the bug.

Btw, the intended command the remove unwanted changes in your working
tree or index is 'k' (magit-discard-item).  'v' works as well in this
situation, but more by accident than by design.

Thanks for the report!

    commit bd8fca2fb70b0846c53f28482f2c1bd96c1282d7

    Make 'a' and 'v' work with whole diffs.
    
    * magit.el (magit-apply-diff-item): Actually use *magit-tmp* as input
    when running the command, instead of ignoring it.  D'oh.

Reply via email to