vermiculus / magithub

**DEPRECATED - please use Forge instead!** -- Magit-based interfaces to GitHub
GNU General Public License v3.0
579 stars 63 forks source link

Set default confirmation responses interactively #270

Closed vermiculus closed 6 years ago

vermiculus commented 6 years ago

This one was actually pretty difficult. Two new functions are introduced: magithub-confirm-{yes-or-no,y-or-n}-p. These functions are like their standard counterparts, but they're also able to save the relevant git variables. Options for this behavior (don't save, save locally, save globally) are cycled when the prompt is active with universal-prefix-argument (aka C-u).

Note that the C-u is hard-coded for magithub-confirm-y-or-n-p; keymaps don't work the same way in this context. If anybody has a workaround, I'd be happy to merge it 😄

Related to discussions in #264.