Merge pull request #1290 from living180/edit_patches
* edit_patches:
cmds: specify suffix=... when calling tmp_filename()
cmds: better temp file name in ApplyPatch
diff: add hotkeys for Edit and... menu items
diff: support editing patches before staging etc.
diffparse: refactor Patch methods
diffparse: add some Patch methods
diffparse: generate hunk header in _DiffHunk
diffparse: rearrange code
diffparse: rename Counter class
diffparse: refactor diff parsing
diffparser: rename DiffParser to Patch
diffparse: drop first_line_idx from _DiffHunk
diffparse: move some constants to the module level
diff: move patch extraction logic
Signed-off-by: David Aguilar <davvid@gmail.com>