[StGit PATCH 3/3] It's possible to edit unapplied patches now
- From
Karl Hasselström <kha@treskal.com>
- Date
- Feb 1, 2008, 07:50 UTC
- Message-ID
- <20080201075041.7905.78693.stgit@yoghurt>
- In-Reply-To
- <20080201074708.7905.98305.stgit@yoghurt>
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 | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/contrib/stgit.el b/contrib/stgit.el index e8bbb2c..bef41c7 100644 --- a/contrib/stgit.el +++ b/contrib/stgit.el @@ -290,9 +290,7 @@ Commands: (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)