git-gui: remove warning when deleting correctly merged remote branch

If the user wants to delete a remote branch and selects the correct
"merged into" we should not warn that "Recovering deleted branches is
difficult". For local branches we do the same already.

Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Heiko Voigt 2009-06-15 23:19:56 +02:00 коммит произвёл Shawn O. Pearce
Родитель 2ee94d141e
Коммит 2112be7650
1 изменённых файлов: 9 добавлений и 7 удалений

Просмотреть файл

@ -208,13 +208,15 @@ method _delete {} {
return return
} }
if {[tk_messageBox \ if {$checktype ne {head}} {
-icon warning \ if {[tk_messageBox \
-type yesno \ -icon warning \
-title [wm title $w] \ -type yesno \
-parent $w \ -title [wm title $w] \
-message [mc "Recovering deleted branches is difficult.\n\nDelete the selected branches?"]] ne yes} { -parent $w \
return -message [mc "Recovering deleted branches is difficult.\n\nDelete the selected branches?"]] ne yes} {
return
}
} }
destroy $w destroy $w