|
1 |
| -;;; magit-stgit.el --- StGit extension for Magit |
| 1 | +;;; magit-stgit.el --- StGit extension for Magit -*- lexical-binding: t; -*- |
2 | 2 |
|
3 | 3 | ;; Copyright (C) 2011-2019 The Magit Project Contributors
|
4 | 4 |
|
@@ -370,8 +370,7 @@ Use ARGS to pass additional arguments."
|
370 | 370 | (not magit-current-popup))
|
371 | 371 | (let ((target (magit-stgit-read-patch "Target patch (default is bottom)")))
|
372 | 372 | (when target
|
373 |
| - (add-to-list 'args "-t" t) |
374 |
| - (add-to-list 'args target t)))) |
| 373 | + (setq args (append args (list "-t" target)))))) |
375 | 374 | (magit-run-stgit-and-mark-remove patches "sink" args "--" patches))
|
376 | 375 |
|
377 | 376 | (magit-define-popup magit-stgit-commit-popup
|
@@ -425,7 +424,7 @@ Use ARGS to pass additional arguments."
|
425 | 424 | (magit-stgit-refresh-arguments)))
|
426 | 425 | (setq patch (nth 0 patch))
|
427 | 426 | (when patch
|
428 |
| - (add-to-list 'args (format "--patch=%s" patch) t)) |
| 427 | + (setq args (append args (list (format "--patch=%s" patch))))) |
429 | 428 | (magit-run-stgit-async "refresh" args))
|
430 | 429 |
|
431 | 430 | ;;;###autoload
|
@@ -482,7 +481,7 @@ Use ARGS to pass additional arguments."
|
482 | 481 | (when (and (called-interactively-p 'any)
|
483 | 482 | (not magit-current-popup)
|
484 | 483 | (and affected-files (y-or-n-p "Spill contents? ")))
|
485 |
| - (add-to-list 'args "--spill"))) |
| 484 | + (setq args (append args (list "--spill"))))) |
486 | 485 | (let ((spill (member "--spill" args)))
|
487 | 486 | (when spill
|
488 | 487 | (setq spill (list "--spill")))
|
|
0 commit comments