summaryrefslogtreecommitdiffstats
path: root/cgit.js
diff options
context:
space:
mode:
Diffstat (limited to 'cgit.js')
-rw-r--r--cgit.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/cgit.js b/cgit.js
new file mode 100644
index 0000000..50470ab
--- /dev/null
+++ b/cgit.js
@@ -0,0 +1,4 @@
+// To use this, add this to /var/lib/git/static/cgit.js and set js=/cgit.js in your cgitrc.
+if ((/\/[^/]+\.git\/tree\/.*/iu).test(location.pathname)) {
+ console.log('tree')
+} \ No newline at end of file