rowanj/gitx — pull request #414 by micampe (2014-11-21 02:03:15+00:00)
Title: Add a discard line button in the commit view

Added a discard line button in the commit view. I reused the code for the staging and the call for the existing discard button for the whole hunk, so this is all contained inside the commit.js for the view.

The code manipulates diffs text in js, which I find slightly terrifying, but it seems to work fine.

Fixes #377.