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

[PATCH] git-gui: Do not select Revert Changes by default

From
Matthew L Daniel <mdaniel@gmail.com>
Date
Mar 17, 2012, 15:12 UTC
Message-ID
<loom.20120317T161127-418@post.gmane.org>

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"] \
 		]
-- 
1.7.9.msysgit.0
Next: Johannes Sixt
Message 1 of 3 in “git-gui: Do not select Revert Changes by default”
  1. git-gui: Do not select Revert Changes by defaultMatthew L Daniel, Mar 17, 2012
  2. Johannes SixtMar 17, 2012
  3. Matthew DanielMar 17, 2012

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.