diff options
| author | Xiao Pan <gky44px1999@gmail.com> | 2024-02-28 10:19:46 +0000 | 
|---|---|---|
| committer | Xiao Pan <gky44px1999@gmail.com> | 2024-02-28 10:19:46 +0000 | 
| commit | c7f738df3852d83efbdde120db3384613c9c2d6b (patch) | |
| tree | 32149c7fc9cb72abe66ad347ff41b44641fe6c8e | |
| parent | 3e0b2c8774a613a5599728be10c8d8681faf4b5e (diff) | |
update
| -rw-r--r-- | etc/cgitrc | 11 | 
1 files changed, 8 insertions, 3 deletions
@@ -4,15 +4,20 @@  cache-size=1000  enable-index-owner=0 -enable-blame=1  mimetype-file=/etc/mime.types  # https://stackoverflow.com/questions/16182421/cgit-and-nginx-url-rewrite  virtual-root=/ +enable-follow-links=1 + +# useful but may makes page generation slow, maybe disable +# can see the log via `journalctl -b -u uwsgi@cgit` and search less pager with sth. like `/[0-9]{3} msecs` +enable-blame=1  enable-log-filecount=1  enable-log-linecount=1 -# kinda useful for showing branch merge, ex: https://git.flylightning.xyz/dwm_fly/log/?h=fly +# showing branch merge, ex: https://git.flylightning.xyz/dwm_fly/log/?h=fly  enable-commit-graph=1 -enable-follow-links=1 + +# not very useful, maybe disable  enable-subject-links=1  # `man cgitrc` uses $CGIT_REPO_URL instead of $CGIT_REPO_NAME, I guess maybe because repo name can be different from repo url?  | 
