This is useful if you want to open the delete dialog with a preselected remote. We use this in the next patch from this series. --- git-gui/lib/remote_branch_delete.tcl | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/git-gui/lib/remote_branch_delete.tcl b/git-gui/lib/remote_branch_delete.tcl index 2416420..e0dbc25 100644 --- a/git-gui/lib/remote_branch_delete.tcl +++ b/git-gui/lib/remote_branch_delete.tcl @@ -22,7 +22,7 @@ field head_cache field full_cache field cached -constructor dialog {} { +constructor dialog {{initial_remote origin}} { global all_remotes M1B make_toplevel top w @@ -52,8 +52,8 @@ constructor dialog {} { -variable @urltype eval tk_optionMenu $w.dest.remote_m @remote $all_remotes grid $w.dest.remote_r $w.dest.remote_m -sticky w - if {[lsearch -sorted -exact $all_remotes origin] != -1} { - set remote origin + if {[lsearch -sorted -exact $all_remotes $initial_remote] != -1} { + set remote $initial_remote } else { set remote [lindex $all_remotes 0] } -- 1.6.5.rc1.12.gc72fe -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html