ref: 2eaed78b6ee38baba3d10dbef784a8642062d8aa
parent: 7868e65c5ef35ac1458aa4d1a605e67c55b66134
author: phil9 <[email protected]>
date: Sun Oct 24 05:06:04 EDT 2021
Info link always point to HEAD revision currently the Info link points to whatever revision was selected within the Log page. This mechanism is useful to browse the repository files at a given commit but there was no way to get back to the HEAD revision. With this change it is still possible to browse the repository at a given commit by visiting a commit on the log page and then switching to the browse page but we can also get back to HEAD by simply visiting the Info page.
--- a/common.rc
+++ b/common.rc
@@ -181,9 +181,9 @@
prelude $puser $prepo
echo ' <h1><a href="/">shithub</a>:
- <a href="/'$puser/$prepo/$phash'/info.html">'$prepo'</a></h1>
+ <a href="/'$puser/$prepo'/HEAD/info.html">'$prepo'</a></h1>
<div id="linkbar">
- <a href="/'$puser/$prepo/$phash'/info.html">Info</a>
+ <a href="/'$puser/$prepo'/HEAD/info.html">Info</a>
•
<a href="/'$puser/$prepo/$phash'/files.html">Files</a>
•