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

Re: [PATCH] gitweb: Adding a `blame' interface.

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Jun 12, 2006, 08:34 UTC
Message-ID
<46a038f90606120134n21c269bbj3e8c7e31d4d93a23@mail.gmail.com>
In-Reply-To
<20060612082448.GA11857@verplant.org>
On 6/12/06, Florian Forster <octo@verplant.org> wrote:
Show 7 quoted lines
> On Mon, Jun 12, 2006 at 10:02:05AM +1200, Martin Langhoff wrote:
> > good! git-blame/git-annotate are quite expensive to run. Do you think
> > it would make sense making it conditional on a git-repo-config option
> > (gitweb.blame=1)?
>
> sure, that it's a big change and if it helps the kernel.org folks ;)
> I'll follow-up with a patch for this in a second..

That'd be great. I am looking into integrating other feature patches too (like tarball downloads) that are useful but costly, making them conditional too...

> Would it help to cache `git-annotate's output, e.g. using one of the

I think we can rely on proxies doing good caching -- a busy host like kernel.org will have big reverse proxies in front. A git-blame for a given file+commitsha doesn't change, so we can give it a long cache time, like... forever ;-)

Show 5 quoted lines
> I have two more points regarding gitweb's configuration:
> - IMHO it would make sense to move the general gitweb-configuration
>   (where are the repositories, where are the binaries, etc) out of the
>   script.  As far as I know the Debian maintainer of the `gitweb'
>   package has asked for this before but was refused for some reason..

Sounds like a reasonable request. I would make it rely on env vars, $ENV{GITWEB_CONFIG} can generally point to /etc/gitweb.conf, and that would override the config values we have.

This is trivial, and it means we buy a lot of flexibility from apache's httpd.conf being able to point to different config files depending on arbitrarty conditions.

BTW, I haven't seen the debian maintainer's request, was that on the list?
> - If `GIT_DIR/description' is only used by gitweb it may be more
>   consistent to use the git-repo-config option `gitweb.description' in
>   the future.

Not sure how git-repo configurations deal with long entries. Right now the description may contain html for instance.

martin
Previous: Florian ForsterNext: Shawn Pearce
Message 5 of 19 in “gitweb: Adding a `blame' interface.”
  1. gitweb: Adding a `blame' interface.Florian Forster, Jun 11, 2006
  2. Martin LanghoffJun 11, 2006
  3. Florian ForsterJun 12, 2006
  4. gitweb: Make the availability of the `blame' interface in gitweb configurable.Florian Forster, Jun 12, 2006
  5. Martin LanghoffJun 12, 2006
  6. Shawn PearceJun 12, 2006
  7. Johannes SchindelinJun 12, 2006
  8. Shawn PearceJun 12, 2006
  9. Florian ForsterJun 12, 2006
  10. Linus TorvaldsJun 12, 2006
  11. Florian ForsterJun 12, 2006
  12. Jon LoeligerJun 12, 2006
  13. Junio C HamanoJun 14, 2006
  14. Fredrik KuivinenJun 12, 2006
  15. Johannes SchindelinJun 12, 2006
  16. Linus TorvaldsJun 12, 2006
  17. Johannes SchindelinJun 12, 2006
  18. Linus TorvaldsJun 12, 2006
  19. Marco CostalbaJun 15, 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.