Thread (32 messages) 32 messages, 4 authors, 2019-12-16

Re: [PATCH v3 1/4] git-p4: yes/no prompts should sanitize user text

From: Ben Keene <hidden>
Date: 2019-12-13 20:37:26

On 12/12/2019 8:45 PM, Denton Liu wrote:
Hi Ben,

On Thu, Dec 12, 2019 at 07:46:24PM +0000, Ben Keene via GitGitGadget wrote:
quoted
From: Ben Keene <redacted>
...
   * choices are extracted from the prompt text [.]
       a single letter surrounded by square brackets
       is selected as a valid choice.
Maybe something like this?

	* returns a single character where valid return values are
	  found by inspecting prompt_text for single characters
	  surrounded by square brackets
Yes, that is much more readable.
...
Aside from the one comment at the bottom, I reviewed the rest of this
patch with `-w` and it looks good to me. Unfortunately, I don't use or
know p4 so I haven't tested it.
quoted
@@ -4170,3 +4175,4 @@ def main():
  
  if __name__ == '__main__':
      main()
+
Spurious trailing line. Perhaps we could make GGG error out on
whitespace errors before submissions are allowed?
That is a good idea.  I obviously missed that and it would
help if it reported the error before submission.
quoted
-- 
gitgitgadget
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help