From: Johannes Sixt <j6t@kdbg.org>
To: Matthew L Daniel <mdaniel@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git-gui: Do not select Revert Changes by default
Date: Sat, 17 Mar 2012 21:02:21 +0100 [thread overview]
Message-ID: <4F64EDCD.1000405@kdbg.org> (raw)
In-Reply-To: <loom.20120317T161127-418@post.gmane.org>
Am 17.03.2012 16:12, schrieb Matthew L Daniel:
> Currently, if one activates the revert changes dialog,
> it has the destructive button selected as the default.
>
> This change moves the default action to "do nothing".
> ---
> git-gui/lib/index.tcl | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/git-gui/lib/index.tcl b/git-gui/lib/index.tcl
> index 8efbbdd..252aa33 100644
> --- a/git-gui/lib/index.tcl
> +++ b/git-gui/lib/index.tcl
> @@ -437,7 +437,7 @@ proc revert_helper {txt paths} {
>
> [mc "Any unstaged changes will be permanently lost by the revert."]" \
> question \
> - 1 \
> + 0 \
> [mc "Do Nothing"] \
> [mc "Revert Changes"] \
> ]
Gah! Please no!
The destructive action is that you chose Branch->Revert. The dialog is
the "Are you sure?" question. Your change is the equivalent of an "Are
you sure that you are sure?" question. It does not make a lot of
difference for point-and-click people, but you force another keypress on
people who operate git-gui with the keyboard.
-- Hannes
next prev parent reply other threads:[~2012-03-17 20:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-17 15:12 [PATCH] git-gui: Do not select Revert Changes by default Matthew L Daniel
2012-03-17 20:02 ` Johannes Sixt [this message]
2012-03-17 20:07 ` Matthew Daniel
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=4F64EDCD.1000405@kdbg.org \
--to=j6t@kdbg.org \
--cc=git@vger.kernel.org \
--cc=mdaniel@gmail.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).