Creating a new patch is a great deal easier now that "stg new" has a
--file flag.
Signed-off-by: Karl Hasselström <kha@treskal.com>
(defun stgit-confirm-new ()
(interactive)
(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
(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))))
(with-current-buffer log-edit-parent-buffer
(stgit-refresh))))