зеркало из https://github.com/microsoft/git.git
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:
Родитель
2ee94d141e
Коммит
2112be7650
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче