-1

Is there a way to remove a confirmation when popping a stash? Documentation say nothing about popping the stash. It says however that when dropping more than one stash, it has the confirmation by default.

However, I'm popping only one stash and I still get the confirmation, even after adding (add-to-list 'magit-no-confirm 'drop-stashes) to the config. Has someone made that work?

3

You can customize the user option magit-dwim-selection, it is documented in (info "(magit) Completion and Confirmation"). For example,

(cl-nsubstitute '(magit-stash-pop nil t)
                '(magit-stash-pop nil ask)
                magit-dwim-selection
                :test #'equal)

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.