0

From the working directory of a git repository, I start git instaweb using git instaweb --httpd=webrick. However, in the tree view of the resulting website, there is no link to each file's "blame". I tried to enable "blame" by adding the following to ~/.gitconfig:

[gitweb]
    blame = true

Even after I restart git instaweb (git instaweb stop, git instaweb --httpd=webrick), the "blame" links are still missing. How do I enable "blame" when using git instaweb?

Flux
  • 9,805
  • 5
  • 46
  • 92
  • https://git-scm.com/docs/gitweb#Documentation/gitweb.txt-arguments – phd Mar 18 '21 at 11:05
  • @phd Thank you for the link, but I've already read `man 1 gitweb` a few times. Could you elaborate? I have already tried adding `$feature{'blame'}{'default'} = [1];` into the repository's `.git/gitweb/gitweb_config.perl` file, but that file gets overwritten every time git instaweb is restarted. – Flux Mar 18 '21 at 11:10
  • Well, I don't use `instaweb`, I use https://packages.debian.org/buster/gitweb from Debian under Apache so my `gitweb_config.perl` is actually `/etc/apache2/sites-available/$domain.perl` and it doesn't get overridden. – phd Mar 18 '21 at 11:20
  • Similar question on the serverfault site: [gitweb refusing to blame](https://serverfault.com/questions/551762/gitweb-refusing-to-blame). – Flux Mar 23 '21 at 08:22

0 Answers0