chiark / gitweb /
Emacs mode: It's possible to edit unapplied patches now
authorKarl Hasselström <kha@treskal.com>
Thu, 31 Jan 2008 14:36:58 +0000 (15:36 +0100)
committerKarl Hasselström <kha@treskal.com>
Sun, 10 Feb 2008 14:46:38 +0000 (15:46 +0100)
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>
contrib/stgit.el

index e8bbb2c02dd7158576d25a77c4b4a821ac6f0e8c..bef41c714a4d69719442dfd5a6154cbf65861595 100644 (file)
@@ -290,9 +290,7 @@ (defun stgit-show ()
 (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)