Allow humans to parse it at a glance.
Signed-off-by: Pieter Praet <[email protected]>
---
magit.el | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/magit.el b/magit.el
index 21caea7..40d377f 100644
--- a/magit.el
+++ b/magit.el
@@ -333,7 +333,16 @@ (defcustom magit-process-connection-type (not (eq
system-type 'cygwin))
(const :tag "pty" t)))
(defcustom magit-process-yes-or-no-prompt-regexp
- " [\[(]\\([Yy]\\(?:es\\)?\\)[/|]\\([Nn]o?\\)[\])]\\? ?$"
+ (concat ;; Match:
+ " " ;; Leading space.
+ "[\[(]" ;; Opening square bracket or paren.
+ "\\([Yy]\\(?:es\\)?\\)" ;; Upper/lower-case "y", maybe followed by a shy
"es"
+ "[/|]" ;; Slash or pipe.
+ "\\([Nn]o?\\)" ;; Upper/lower-case "n", maybe followed by an "o".
+ "[\])]" ;; Closing square bracket or paren.
+ "\\? ?" ;; Question mark, maybe followed by a trailing
space.
+ "$" ;; @ EOL...
+ )
"Regexp matching Yes-or-No prompts of git and its subprocesses."
:group 'magit
:type 'regexp)
--
1.7.11.1
--
---
You received this message because you are subscribed to the Google Groups
"magit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.