git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sitaram Chamarty <sitaramc@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Phil Hord <phil.hord@gmail.com>,
	Sitaram Chamarty <sitaram@atc.tcs.com>,
	git@vger.kernel.org
Subject: Re: [PATCH] git-difftool: allow skipping file by typing 'n' at prompt
Date: Wed, 5 Oct 2011 04:35:44 +0530	[thread overview]
Message-ID: <CAMK1S_gssgpy7nF46c1roJUCN5yvQaOYfVE_-ZrvMfHGWKvk0w@mail.gmail.com> (raw)
In-Reply-To: <7vty7oblpu.fsf@alter.siamese.dyndns.org>

On Wed, Oct 5, 2011 at 12:58 AM, Junio C Hamano <gitster@pobox.com> wrote:
> Phil Hord <phil.hord@gmail.com> writes:
>
>> On Tue, Oct 4, 2011 at 11:25 AM, Junio C Hamano <gitster@pobox.com> wrote:
>>
>>> I think I've seen this done as: "do this? [Y/n]" elsewhere.
>>>
>>> Not telling you what to do, but trying to feel what others may think.
>>
>> I think so, too.  The [y]/n syntax is not clear enough for me to
>> confidently know what the default value will be.
>
> One downside of "do this [Y,n,m,o,p,q]? " is that it limits us to
> lowercase responses, which means we cannot assign 'q' for quitting from
> the innermost nested context and assign 'Q' for quitting from the whole
> interactive loop (e.g. "git add -p").
>
>    "do this [y,n,m,o,p,q] (default=y)? "

Does this even make a difference in this case?  I was going to send
out a new patch using [Y/n] instead of my original [y]/n.  There's
only one loop in this thing, and till now people have been presumably
hitting Ctrl-C to get out of it.  I see no real need to make that more
elegant; all I set out to do is add one teeny weeny bit of
functionality to a prompt that -- other than giving you a chance to
hit that Ctrl-C -- was not actually doing anything useful at all.

>
> may have been a better choice in hindsight.
>
> No matter what we end up doing, let's try to be consistent.

The only other part of git where I have ever used a prompt is 'git add
-p'.  Consistency with *that* prompt, to me, would mean colors.  And
help text.  And I'm not sure what else, really, since I only used it
superficially.

Isn't that overkill for this case?

I'll wait a few hours for any further comments then send out a patch
that is the same as my original one except it uses [Y/n] instead of
[y]/n.

  reply	other threads:[~2011-10-04 23:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-04 10:53 [PATCH] git-difftool: allow skipping file by typing 'n' at prompt Sitaram Chamarty
2011-10-04 15:25 ` Junio C Hamano
2011-10-04 17:49   ` Jeff King
2011-10-04 18:02   ` Phil Hord
2011-10-04 19:28     ` Junio C Hamano
2011-10-04 23:05       ` Sitaram Chamarty [this message]
2011-10-06 12:56         ` Sitaram Chamarty
2011-10-06 17:36           ` Junio C Hamano
2011-10-06 18:15             ` Sitaram Chamarty
2011-10-07 20:09               ` Junio C Hamano
2011-10-08 13:10                 ` Sitaram Chamarty
2011-10-09 11:26                   ` Charles Bailey
2011-10-10 20:56                   ` Junio C Hamano
2011-10-10 23:39                     ` Sitaram Chamarty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMK1S_gssgpy7nF46c1roJUCN5yvQaOYfVE_-ZrvMfHGWKvk0w@mail.gmail.com \
    --to=sitaramc@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=phil.hord@gmail.com \
    --cc=sitaram@atc.tcs.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).