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

Re: git-gui Error

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 15, 2007, 06:38 UTC
Message-ID
<20070215063855.GA30643@spearce.org>
In-Reply-To
<20070215060712.GA3761@auto.tuwien.ac.at>
Martin Koegler <mkoegler@auto.tuwien.ac.at> wrote:
> This time, the white spaces/tabs should be correct:
Thanks, that applied cleanly.

Except the radio button for Tag isn't selected if you make a selection from the tag picklist. This was easily fixed by adding a trace to the variable, like the trace already setup for the branch and tracking branch menus:

diff --git a/git-gui.sh b/git-gui.sh
index 1c3de80..9ce5a3b 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -2018,6 +2018,8 @@ trace add variable create_branch_head write \
 	[list radio_selector create_branch_revtype head]
 trace add variable create_branch_trackinghead write \
 	[list radio_selector create_branch_revtype tracking]
+trace add variable create_branch_tag write \
+	[list radio_selector create_branch_revtype tag]
 
 trace add variable delete_branch_head write \
 	[list radio_selector delete_branch_checktype head]

I applied your patch along with the new trace above, and have pushed
it out as the following:

commit 101e3ae7a6b041aa86505bfd3e8b901f1dc245c3
Author: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Date:   Thu Feb 15 01:28:34 2007 -0500

    git-gui: Create new branches from a tag.
    
    I'm missing the possibility to base a new branch on a tag.
    The following adds a tag drop down to the new branch dialog.
    
    Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
    Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-- 
Shawn.
Previous: Martin KoeglerNext: Martin Koegler
Message 9 of 11 in “git-gui Error”
  1. Martin KoeglerFeb 13, 2007
  2. Shawn O. PearceFeb 13, 2007
  3. Martin KoeglerFeb 13, 2007
  4. Shawn O. PearceFeb 14, 2007
  5. Shawn O. PearceFeb 14, 2007
  6. Martin KoeglerFeb 14, 2007
  7. Shawn O. PearceFeb 15, 2007
  8. Martin KoeglerFeb 15, 2007
  9. Shawn O. PearceFeb 15, 2007
  10. Martin KoeglerFeb 14, 2007
  11. Shawn O. PearceFeb 15, 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.