aboutsummaryrefslogtreecommitdiff
path: root/config/cgitrc
diff options
context:
space:
mode:
Diffstat (limited to 'config/cgitrc')
-rw-r--r--config/cgitrc42
1 files changed, 42 insertions, 0 deletions
diff --git a/config/cgitrc b/config/cgitrc
new file mode 100644
index 0000000..a16ad8f
--- /dev/null
+++ b/config/cgitrc
@@ -0,0 +1,42 @@
+#
+# cgit config
+# see cgitrc(5) for details
+
+# For generate the page about, juste add this following line in the hooks post-receive (ex in: myrepo.git/hooks/post-receive):
+# #!/bin/sh
+# CGIT_DIR=$(echo $(pwd) | awk -F'pub_repo' '{print $2}')
+# pandoc -f markdown https://git.neodarz.net$CGIT_DIR/plain/README.md > readme.html
+
+css=/cgit-css/cgit.css
+logo=/cgit-css/cgit.png
+favicon=/cgit-css/cgit.png
+enable-git-config=1
+source-filter=/home/git/pub_repo/tools/style/syntax-highlighting.py
+
+
+snapshots=zip tar.xz
+
+# Show number of added/removed lines per commit on the log pages
+enable-log-linecount=1
+
+# Show number of affected files per commit on the log pages
+enable-log-filecount=1
+
+# Enable ASCII art commit history graph on the log pages
+enable-commit-graph=1
+
+# Show extra links for each repository on the index page
+enable-index-links=1
+
+# Remove .git suffix from project display
+remove-suffix=1
+
+enable-follow-links=1
+
+enable-index-links=1
+
+clone-url=https://git.neodarz.net/$CGIT_REPO_URL ssh://git@neodarz.net:/home/git/pub_repo/$CGIT_REPO_URL
+
+# For generate this file, juste run /home/git/pub_repo/gitrc_conf_gen.sh
+include=/home/git/pub_repo/cgitrepos
+