Skip to content

Commit 00d997e

Browse files
committed
[commit-patch-buffer.el] Make arg handling style a little more functional.
1 parent 5bfe812 commit 00d997e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

commit-patch-buffer.el

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,10 @@ one."
6565
(with-current-buffer output-buffer
6666
(erase-buffer)
6767
(let* ((default-directory ,directory)
68-
(args `("-m" ,comment))
69-
(args (if ,amend
70-
(append args '("--amend"))
71-
args))
7268
(status (apply 'process-file commit-patch-program patch
7369
output-buffer nil
74-
args)))
70+
(append `("-m" ,comment)
71+
(if ,amend '("--amend"))))))
7572
(if (not (eq status 0))
7673
(progn
7774
(window-buffer (display-buffer output-buffer))

0 commit comments

Comments
 (0)