With the rewrite, "stg edit" gained the ability to edit unapplied
patches, so the emacs mode no longer has to check that a patch is
applied before trying to edit it.
Signed-off-by: Karl Hasselström <kha@treskal.com>
(defun stgit-edit ()
"Edit the patch on the current line"
(interactive)
(defun stgit-edit ()
"Edit the patch on the current line"
(interactive)
- (let ((patch (if (stgit-applied-at-point)
- (stgit-patch-at-point)
- (error "This patch is not applied")))
+ (let ((patch (stgit-patch-at-point))
(edit-buf (get-buffer-create "*StGit edit*"))
(dir default-directory))
(log-edit 'stgit-confirm-edit t nil edit-buf)
(edit-buf (get-buffer-create "*StGit edit*"))
(dir default-directory))
(log-edit 'stgit-confirm-edit t nil edit-buf)