{"thread":{"id":"26429","subject":"[PATCH] git-gui: scroll down to default selection for push dialog","startedAt":"2011-02-06T17:04:27Z","lastAt":"2011-02-06T17:04:27Z","messageCount":1,"participants":["Heiko Voigt"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"160501","messageId":"20110206170426.GB47941@book.hvoigt.net","threadId":"26429","inReplyTo":null,"subject":"[PATCH] git-gui: scroll down to default selection for push dialog","fromName":"Heiko Voigt","fromEmail":"hvoigt@hvoigt.net","sentAt":"2011-02-06T17:04:27Z","receivedAt":"2011-02-06T17:04:27Z","isPatch":true,"sender":{"key":"hvoigt@hvoigt.net","avatar":"https://avatars.githubusercontent.com/u/184958?v=4"},"body":"If the list of remote/local branches is very long its inconvenient\nto scroll down and find the selected branch. This patch makes the\nwidget automatically scroll down so its shown on the top.\n\nSigned-off-by: Heiko Voigt <hvoigt@hvoigt.net>\n---\nNote: Please also apply with 'git am -p2'\n\n git-gui/lib/transport.tcl |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\ndiff --git a/git-gui/lib/transport.tcl b/git-gui/lib/transport.tcl\nindex e4e1add..6478efa 100644\n--- a/git-gui/lib/transport.tcl\n+++ b/git-gui/lib/transport.tcl\n@@ -211,6 +211,7 @@ proc do_push_anywhere {} {\n \t\t$w.source.l insert end $h\n \t\tif {$h eq $current_branch} {\n \t\t\t$w.source.l select set end\n+\t\t\t$w.source.l yview end\n \t\t}\n \t}\n \tpack $w.source.l -side left -fill both -expand 1\n-- \n1.7.4.34.gd2cb1\n"}]}