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

[PATCH] git-gui: scroll down to default selection for push dialog

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Feb 6, 2011, 17:04 UTC
Message-ID
<20110206170426.GB47941@book.hvoigt.net>

If the list of remote/local branches is very long its inconvenient to scroll down and find the selected branch. This patch makes the widget automatically scroll down so its shown on the top.

Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
---
Note: Please also apply with 'git am -p2'
 git-gui/lib/transport.tcl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-gui/lib/transport.tcl b/git-gui/lib/transport.tcl
index e4e1add..6478efa 100644
--- a/git-gui/lib/transport.tcl
+++ b/git-gui/lib/transport.tcl
@@ -211,6 +211,7 @@ proc do_push_anywhere {} {
 		$w.source.l insert end $h
 		if {$h eq $current_branch} {
 			$w.source.l select set end
+			$w.source.l yview end
 		}
 	}
 	pack $w.source.l -side left -fill both -expand 1
-- 
1.7.4.34.gd2cb1
Message 1 of 1 in “git-gui: scroll down to default selection for push dialog”
  1. git-gui: scroll down to default selection for push dialogHeiko Voigt, Feb 6, 2011

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.