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

Re: [ANNOUNCE] cgit v0.7

From
LHLars Hjemli <hjemli@gmail.com>
Date
Nov 7, 2007, 10:52 UTC
Message-ID
<8c5c35580711070252g4b0c2914v6ecb73320a07ee83@mail.gmail.com>
In-Reply-To
<6b6419750711061039l26290561wd2abe07035a8679c@mail.gmail.com>
On Nov 6, 2007 7:39 PM, Patrick Aljord <patcito@gmail.com> wrote:
> Looks great, thanks for the new release.
Thanks!
> It would be great if when a commit message contains something such as
> #1234 it would automatically link to the bug tracker page of that bug
> (like Trac does) by preconfiguring the bugtracker URL.

Yeah, it shouldn't be to difficult either. We could just add a couple of repo-options to cgitrc, maybe something like this:

  repo.bugtracker-regex=(#[0-9]+)
  repo.bugtracker-url=http://bugs.freedesktop.org/show_bug.cgi?id=%1

and then use regexec() combined with the interpolate() function in git to perform the substitution. There could also be similar global options, i.e.:

  bugtracker-regex=(#[0-9]+)
  bugtracker-url=http://bugs.freedesktop.org/show_bug.cgi?id=%1
which would be used if the per-repo options weren't specified.
I'll put it on my todo-list (and patches are always appreciated).

-- larsh

Previous: Patrick Aljord
Message 10 of 10 in “[ANNOUNCE] cgit v0.7”
  1. Lars HjemliNov 3, 2007
  2. Nguyen Thai Ngoc DuyNov 3, 2007
  3. Lars HjemliNov 3, 2007
  4. Jakub NarebskiNov 5, 2007
  5. Lars HjemliNov 5, 2007
  6. Lars HjemliNov 5, 2007
  7. Peter KarlssonNov 6, 2007
  8. Lars HjemliNov 6, 2007
  9. Patrick AljordNov 6, 2007
  10. Lars HjemliNov 7, 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.