X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/blobdiff_plain/b70ff1674441a5f04903028996fe2d813e89bf27..27b0f9e4669780e65afce41e64c713c8c6f4e196:/contrib/stgit.el 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 @@ (defun stgit-new () (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))))