File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2606,8 +2606,14 @@ file ended up. You can then jump to the file with \
2606
2606
2607
2607
(defun stgit-confirm-edit ()
2608
2608
(interactive )
2609
- (let ((file (make-temp-file " stgit-edit-" )))
2610
- (write-region (point-min ) (point-max ) file)
2609
+ (let ((file (make-temp-file " stgit-edit-" ))
2610
+ (start (point-min ))
2611
+ (summary-string " Summary: " ))
2612
+ ; ; log-edit puts this summary string here that we do not want
2613
+ (if (string-equal (buffer-substring start (+ 1 (length summary-string)))
2614
+ summary-string)
2615
+ (setq start (+ start (length summary-string))))
2616
+ (write-region start (point-max ) file)
2611
2617
(stgit-capture-output nil
2612
2618
(stgit-run " edit" " -f" file " --" stgit-edit-patchsym))
2613
2619
(with-current-buffer log-edit-parent-buffer
You can’t perform that action at this time.
0 commit comments