Skip to content

Commit

Permalink
git gui: make current branch default in "remote delete branch" merge …
Browse files Browse the repository at this point in the history
…check

We already do the same when locally deleting a branch.

Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
Heiko Voigt authored and Shawn O. Pearce committed Dec 5, 2009
1 parent acb9108 commit c0d1532
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/remote_branch_delete.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ method _write_url {args} { set urltype url }
method _write_check_head {args} { set checktype head }

method _write_head_list {args} {
global current_branch

$head_m delete 0 end
foreach abr $head_list {
$head_m insert end radiobutton \
Expand All @@ -258,7 +260,11 @@ method _write_head_list {args} {
-variable @check_head
}
if {[lsearch -exact -sorted $head_list $check_head] < 0} {
set check_head {}
if {[lsearch -exact -sorted $head_list $current_branch] < 0} {
set check_head {}
} else {
set check_head $current_branch
}
}
}

Expand Down

0 comments on commit c0d1532

Please sign in to comment.