git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] gitk - dont warn when deleting synonym for current head

From
Mark Levedahl <mdl123@verizon.net>
Date
Aug 12, 2007, 21:03 UTC
Message-ID
<1186952583887-git-send-email-mdl123@verizon.net>

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
Next: Paul Mackerras
Message 1 of 7 in “gitk - dont warn when deleting synonym for current head”
  1. gitk - dont warn when deleting synonym for current headMark Levedahl, Aug 12, 2007
  2. Paul MackerrasAug 12, 2007
  3. Mark LevedahlAug 13, 2007
  4. Mark LevedahlAug 13, 2007
  5. Paul MackerrasAug 13, 2007
  6. Mark LevedahlAug 13, 2007
  7. Mark LevedahlAug 13, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.