Merge pull request #1290 from living180/edit_patches
commit9246fdcd00c098dd9e286d8cbc393163954cf098
authorDavid Aguilar <davvid@gmail.com>
Mon, 13 Feb 2023 05:11:10 +0000 (12 21:11 -0800)
committerDavid Aguilar <davvid@gmail.com>
Mon, 13 Feb 2023 05:11:12 +0000 (12 21:11 -0800)
tree6da91b0bf7dc855b54196573c0949e4dd27e4c78
parent74bfcc2b4b0af11609e52c798a199a2521b5437b
parentc7ef611fa993e7e50790ac4f34b2a2c5d945f332
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>