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

Re: gitk does not reload tag messages

From
David Aguilar <davvid@gmail.com>
Date
Sep 7, 2012, 03:08 UTC
Message-ID
<CAJDDKr7AJ4Mrw8_wsB9WSqPT8sBca8FmBGHoq2Ay_ivLyUyAGg@mail.gmail.com>
In-Reply-To
<MTAwMDAxMC50aW1tYw.1346955478@quikprotect>
On Thu, Sep 6, 2012 at 11:17 AM, Tim McCormack <cortex@brainonfire.net> wrote:
Show 18 quoted lines
> If a tag that gitk knows about is deleted and recreated with a
> different message, gitk still shows the old message after any
> combination of refresh, reload, and reread refs.
>
> git-gui version 0.13.0.8.g8f85
>
> Reproduce:
> 1. git tag -a test -m "foo" HEAD
> 2. Open gitk, see that correct message ("foo") is present for tag "test"
> 3. git tag -d test
> 4. Reload/refresh gitk [optional, it won't make a difference]
> 5. git tag -a test -m "bar" HEAD
> 6. Reload/refresh gitk
> 7. See that the message on tag "test" is still "foo"
> 8. $ git show test # shows correct message "bar"
>
> Apologies if this is an old version or a known bug; I could not find an
> issue tracker to search, although I did check the gmane archives.

Tags in git are meant to be immutable. You can delete them, but you shouldn't. That's not really how they are intended to be used.

gitk avoids re-reading that information because the normal, typical use case is that the tag messages do not change.

It would probably be a performance regression to "fix" this. In which case, IMO it's not a bug.

-- 
David
Previous: Tim McCormackNext: Junio C Hamano
Message 2 of 8 in “gitk does not reload tag messages”
  1. Tim McCormackSep 6, 2012
  2. David AguilarSep 7, 2012
  3. Junio C HamanoSep 7, 2012
  4. gitk: Teach "Reread references" to reload tagsDavid Aguilar, Sep 8, 2012
  5. gitk: Rename 'tagcontents' to 'cached_tagcontent'David Aguilar, Sep 8, 2012
  6. Junio C HamanoSep 9, 2012
  7. Junio C HamanoSep 12, 2012
  8. Paul MackerrasSep 12, 2012

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.