ref: 2444dbcbf8bf4d90f883b0fa13a783b8e7ef289e
parent: 6dc42c22393e933c37de87e69955962d87c856e2
author: phil9 <telephil9@gmail.com>
date: Sun Oct 24 12:49:49 EDT 2021
add $user/$repo/tree as shortcut for repo url currently to access a user repository the full url is http://shithub.us/$user/$repo/HEAD/info.html the last part is a bit long so we now have http://shithub.us/$user/$repo/tree as a shortcut
--- a/gitrules
+++ b/gitrules
@@ -1,5 +1,6 @@
#/(shithub.png) /bin/shithub/static /usr/git '\1'
/index.html /bin/shithub/list /usr/git
+([^'/]+)/([^'/]+)/tree /bin/shithub/info /usr/git '\1' '\2' 'HEAD'
([^'/]+)/([^'/]+)/([^'/]+)/info.html /bin/shithub/info /usr/git '\1' '\2' '\3'
([^'/]+)/([^'/]+)/([^'/]+)/files.html /bin/shithub/files /usr/git '\1' '\2' '\3'
([^'/]+)/([^'/]+)/([^'/]+)/snap.tar.gz /bin/shithub/tar /usr/git '\1' '\2' '\3'