Revert code in diff panel when select head commit

Issue #12660 open
Nithipath Yoowasonthi
created an issue

Diff panel is a great place to edit files and commit fixing

I would like to have ability to revert code and edit then submit a whole change in that page

Especially side by side diff panel should have arrow button to put code from old commit to new one. And could be edit code directly in the side of head commit