summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-01-15 15:49:10 +0100
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-01-15 15:49:10 +0100
commitf7152ca7c85a39f678e709b3c54c453fc9a177f6 (patch)
treedd911b5e752d5af3ca9eaeaf26f0e03963eb0451
parent1777d1e9e636bbef8c30d19871e780ef621be55f (diff)
downloadcgit-assets-f7152ca7c85a39f678e709b3c54c453fc9a177f6.tar.gz
cgit-assets-f7152ca7c85a39f678e709b3c54c453fc9a177f6.tar.bz2
cgit-assets-f7152ca7c85a39f678e709b3c54c453fc9a177f6.tar.lz
cgit-assets-f7152ca7c85a39f678e709b3c54c453fc9a177f6.zip

feat: tmp 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