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

Gitk feature - show nearby tags

From
Paul Mackerras <paulus@samba.org>
Date
Jun 3, 2006, 09:38 UTC
Message-ID
<17537.22675.678700.118093@cargo.ozlabs.ibm.com>

I just pushed out an update to the "new" branch of the gitk.git repository, which adds a feature that I have often wished for: it will now show the nearest preceding and following tags when you select a commit. This is very useful if you need to identify which release was the first to incorporate a particular patch, or if you need to know which release a patch might have been based on.

(Specifically, it shows the tags for all tagged descendents that are not descendents of another tagged descendent of the selected commit, and the tags for all tagged ancestors that are not ancestors of another tagged ancestor of the selected commit.)

Since there is a one-off computation that gitk does to work this out, which takes an appreciable time (about 1.5 seconds on my G5 on the kernel repository), I have made gitk do the computation in the background, and update the diff/file display window when it's done. There is also a checkbox in the preferences window where you can turn it off if you don't want gitk to do this computation.

Comments/suggestions welcome.
Paul.
Next: Junio C Hamano
Message 1 of 29 in “Gitk feature - show nearby tags”
  1. Paul MackerrasJun 3, 2006
  2. Junio C HamanoJun 3, 2006
  3. Marco CostalbaJun 3, 2006
  4. Paul MackerrasJun 4, 2006
  5. Marco CostalbaJun 4, 2006
  6. Junio C HamanoJun 4, 2006
  7. Marco CostalbaJun 4, 2006
  8. Junio C HamanoJun 4, 2006
  9. Marco CostalbaJun 4, 2006
  10. Junio C HamanoJun 4, 2006
  11. Junio C HamanoJun 4, 2006
  12. Marco CostalbaJun 4, 2006
  13. Marco CostalbaJun 4, 2006
  14. Junio C HamanoJun 4, 2006
  15. Marco CostalbaJun 4, 2006
  16. Junio C HamanoJun 5, 2006
  17. Marco CostalbaJun 5, 2006
  18. Paul MackerrasJun 3, 2006
  19. Junio C HamanoJun 3, 2006
  20. Paul MackerrasJun 4, 2006
  21. Jonas FonsecaJun 3, 2006
  22. Jakub NarebskiJun 3, 2006
  23. Jonas FonsecaJun 3, 2006
  24. Junio C HamanoJun 4, 2006
  25. Jonas FonsecaJun 5, 2006
  26. Junio C HamanoJun 5, 2006
  27. Junio C HamanoJun 5, 2006
  28. Jonas FonsecaJun 5, 2006
  29. Jonas FonsecaJun 5, 2006

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.