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

Re: gitweb: please show tags file history browsing

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 12, 2010, 10:19 UTC
Message-ID
<201009121219.58191.jnareb@gmail.com>
In-Reply-To
<000d01cb525c$c6c2b8b0$54482a10$@se>
On Sun, 12 Sep 2010, Tjernlund wrote:
Show 7 quoted lines
> > -----Original Message-----
> > From: Jakub Narebski [mailto:jnareb@gmail.com]
> > 
> > "Tjernlund" <tjernlund@tjernlund.se> writes:
> > 
> > > I would really like to see where the tags are when browsing
> > > file or directory history in gitweb. Would that be possible?
Show 16 quoted lines
> > While it probably be possible to show tags in 'history' view, it would
> > be not easy.  The problem is that 'history' view shows only commits
> > that touch specified file or directory, and tagged commits usually do
> > not touch those files (at least if one is using "bump version number"
> > commits to tag them).
> > 
> > So you would have:
> > 1. Design where to show those tags - they would be between shown
> >    commits.
> > 2. Create code which shows some/all tags that are between commits in
> >    the presence of nonlinear history, without affecting performance
> >    too badly.
> 
> Ah, that is too bad because I think it would really useful.
> Image browsing a drivers history in the linux kernel. Then it would be
> really nice to see what changes/bug fixes went into what release.

First, you can help with the first issue even if you can't help with the coding itself.

Second, with single 'git name-rev --tags --stdin' or with '--decorate' or '%d' in format we could (I think) either display at least some tags, or name-rev decorations, i.e. something like:

  (v1.7.3-rc0~38) gitweb: Don't die_error in git_tag after already printing headers
  (v1.7.3-rc0~44) Merge branch 'maint'
  (v1.7.2.3~15) Typos in code comments, an error message, documentation
  (v1.7.3-rc0~85) Merge branch 'jn/maint-gitweb-dynconf'
  (v1.7.3-rc0~92) Merge branch 'maint'
  (v1.7.2.2~12) gitweb: clarify search results page when no matching commit found
  [...]

If we want to display all tags we would have IIUC extend git-log to generate such information.

-- 
Jakub Narebski
Poland
Previous: TjernlundNext: Tjernlund
Message 4 of 9 in “gitweb: please show tags file history browsing”
  1. TjernlundSep 11, 2010
  2. Jakub NarebskiSep 11, 2010
  3. TjernlundSep 12, 2010
  4. Jakub NarebskiSep 12, 2010
  5. TjernlundSep 12, 2010
  6. Jakub NarebskiSep 12, 2010
  7. TjernlundSep 12, 2010
  8. Jakub NarebskiSep 12, 2010
  9. TjernlundSep 13, 2010

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.