git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitk - dont warn when deleting synonym for current head
@ 2007-08-12 21:03 Mark Levedahl
  2007-08-12 23:44 ` Paul Mackerras
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Levedahl @ 2007-08-12 21:03 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: Git Mailing List, Mark Levedahl

Selecting "remove this branch" on a branch equal to HEAD yielded a
warning that this branch is not in any other: it is, it is on HEAD.
Curiosly, this warning was not triggered for any other deletion and
so is at best misleading. Get rid of it.

Signed-off-by: Mark Levedahl <mdl123@verizon.net>
---
 gitk |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/gitk b/gitk
index 769c79a..055cdc7 100755
--- a/gitk
+++ b/gitk
@@ -6171,12 +6171,6 @@ proc rmbranch {} {
 	error_popup "Cannot delete the currently checked-out branch"
 	return
     }
-    set dheads [descheads $id]
-    if {$dheads eq $headids($head)} {
-	# the stuff on this branch isn't on any other branch
-	if {![confirm_popup "The commits on branch $head aren't on any other\
-			branch.\nReally delete branch $head?"]} return
-    }
     nowbusy rmbranch
     update
     if {[catch {exec git branch -D $head} err]} {
-- 
1.5.3.rc4.80.ge600

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-08-13 13:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-12 21:03 [PATCH] gitk - dont warn when deleting synonym for current head Mark Levedahl
2007-08-12 23:44 ` Paul Mackerras
2007-08-13  1:10   ` Mark Levedahl
2007-08-13  1:51     ` Mark Levedahl
2007-08-13  3:52       ` Paul Mackerras
2007-08-13 13:04         ` Mark Levedahl
2007-08-13 13:22           ` Mark Levedahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).