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

Re: [PATCH] gitk: disable "Reset %s branch to here" when on a detached head

From
Michele Ballabio <barra_cuda@katamail.com>
Date
May 2, 2008, 14:56 UTC
Message-ID
<200805021656.57929.barra_cuda@katamail.com>
In-Reply-To
<18459.3700.934377.597975@cargo.ozlabs.ibm.com>
On Friday 02 May 2008, Paul Mackerras wrote:
Show 9 quoted lines
> > -     $menu entryconfigure 7 -label [mc "Reset %s branch to here" $mainhead]
> > +     if {$mainhead ne {}} {
> > +         $menu entryconfigure 7 -label [mc "Reset %s branch to here" $mainhead]
> > +     } else {
> > +         $menu entryconfigure 7 -label [mc "Reset %s branch to here" $mainhead] -state disabled
> 
> I wonder if we can make this message something more appropriate than
> "Reset  branch to here" (since $mainhead has to be the empty string
> here)?  Not sure what I would suggest though. :)

Oh, you're right. I'd say either "Reset detached head to here" greyed out (i.e. change the words as little as possible), or something more explicative like "Detached head: reset not possible". I'd go for the first, but I'm really not sure about this: you'd better seek suggestions from a native speaker :).

Previous: Paul MackerrasNext: Michele Ballabio
Message 2 of 3 in “Re: [PATCH] gitk: disable "Reset %s branch to here" when on a detached head”
  1. Paul MackerrasMay 2, 2008
  2. Michele BallabioMay 2, 2008
  3. gitk: disable "Reset %s branch to here" when on a detached headMichele Ballabio, May 2, 2008

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.