branch: elpa/magit
commit 75278f8bbbb117e67eb69a60c851a7dbb16164da
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-notes-read-ref: Make two arguments optional
---
 lisp/magit-notes.el | 2 +-
 lisp/magit-push.el  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/magit-notes.el b/lisp/magit-notes.el
index b53e7cbe5f9..04e4ea1e27c 100644
--- a/lisp/magit-notes.el
+++ b/lisp/magit-notes.el
@@ -163,7 +163,7 @@ Also see `magit-notes-merge'."
 
 ;;; Readers
 
-(defun magit-notes-read-ref (prompt _initial-input history)
+(defun magit-notes-read-ref (prompt &optional _initial-input history)
   (and-let* ((ref (magit-completing-read
                    prompt (magit-list-notes-refnames) nil nil
                    (and-let* ((def (magit-get "core.notesRef")))
diff --git a/lisp/magit-push.el b/lisp/magit-push.el
index e4338391560..9fc944e369b 100644
--- a/lisp/magit-push.el
+++ b/lisp/magit-push.el
@@ -258,7 +258,7 @@ branch as default."
 (defun magit-push-notes-ref (ref remote &optional args)
   "Push a notes ref to another repository."
   (interactive
-   (let ((note (magit-notes-read-ref "Push notes" nil nil)))
+   (let ((note (magit-notes-read-ref "Push notes")))
      (list note
            (magit-read-remote (format "Push %s to remote" note) nil t)
            (magit-push-arguments))))

Reply via email to