git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] difftool/mergetool: make the form of yes/no questions consistent

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 12, 2016, 21:15 UTC
Message-ID
<xmqqegaapm02.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<1460472260.3214.23.camel@redhat.com>
Nikola Forró <nforro@redhat.com> writes:
Show 11 quoted lines
> Every yes/no question in difftool/mergetool scripts has slightly
> different form, and none of them is consistent with the form git
> itself uses.
>
> Make the form of all the questions consistent with the form used
> by git.
>
> Reviewed-by: John Keeping <john@keeping.me.uk>
> Signed-off-by: Nikola Forró <nforro@redhat.com>
> ---
> Changes in v2: example dropped from the commit message
Thanks; have you run the test suite with this patch applied?

It is your responsibility to make sure that the expectation by existing tests are still satisfied after your change, or update their expectation to match the new (and hopefully better) world order your patch introduces.

I needed to squash this in to make the tests pass, but because I am not a difftool user, I do not at all know if the prompt produced (and expected by the test) is sensible or not.

 t/t7800-difftool.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t7800-difftool.sh b/t/t7800-difftool.sh
index ec8bc8c..df9050f 100755
--- a/t/t7800-difftool.sh
+++ b/t/t7800-difftool.sh
@@ -20,7 +20,7 @@ difftool_test_setup ()
 prompt_given ()
 {
 	prompt="$1"
-	test "$prompt" = "Launch 'test-tool' [Y/n]: branch"
+	test "$prompt" = "Launch 'test-tool' [Y/n]? branch"
 }
 
 # Create a file on master and change it on branch
Previous: Nikola ForróNext: David Aguilar
Message 2 of 4 in “difftool/mergetool: make the form of yes/no questions consistent”
  1. difftool/mergetool: make the form of yes/no questions consistentNikola Forró, Apr 12, 2016
  2. Junio C HamanoApr 12, 2016
  3. David AguilarApr 13, 2016
  4. Nikola ForróApr 13, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.