From: Karl Hasselström Date: Tue, 20 May 2008 21:33:24 +0000 (+0200) Subject: Emacs mode: use "stg new --file" X-Git-Tag: v0.15-rc1~230 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/27b0f9e4669780e65afce41e64c713c8c6f4e196 Emacs mode: use "stg new --file" Creating a new patch is a great deal easier now that "stg new" has a --file flag. Signed-off-by: Karl Hasselström --- diff --git a/contrib/stgit.el b/contrib/stgit.el index 2a6fee3..437722a 100644 --- a/contrib/stgit.el +++ b/contrib/stgit.el @@ -327,16 +327,10 @@ Commands: (defun stgit-confirm-new () (interactive) - (let ((file (make-temp-file "stgit-edit-")) - (patch (stgit-create-patch-name - (buffer-substring (point-min) - (save-excursion (goto-char (point-min)) - (end-of-line) - (point)))))) + (let ((file (make-temp-file "stgit-edit-"))) (write-region (point-min) (point-max) file) (stgit-capture-output nil - (stgit-run "new" "-m" "placeholder" patch) - (stgit-run "edit" "-f" file patch)) + (stgit-run "new" "-f" file)) (with-current-buffer log-edit-parent-buffer (stgit-refresh))))