-
Notifications
You must be signed in to change notification settings - Fork 779
Can there be an option to generate URLs with revision numbers by default? #1736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
the patch for this should be very easy to write, if you have some spare time try to have a look at web dir and how we print out results, fix should be very easy, just add proper code which looks up version to print out to screen ... |
I have not dived into the OpenGrok source code yet, so I wasn't sure how much work it would be. It is good to know that you think it should be easy. (Incidentally, I am disappointed that OpenGrok does not seem to have a public demo server that indexes its own code... ;) ) |
This should probably be only enabled if history cache is enabled - need to fetch latest revision quickly. |
the public demo versions - Trond upgrades fairly quickly after release: http://src.couchbase.org/source/ |
The public demo sounds like a fun task - will try to engage it in the future. It would totally make sense to automatically deploy and reindex after each push to |
This enhancement should probably apply to URLs generated for raw listings ( |
One way how to approach this would be to get the latest revision if revision is empty and redirect (temporary) to page with revision. Then check if the revision to display is the latest and if yes, just |
I've seen a lot of people post URLs to our internal OpenGrok server via email, bug comments, commit descriptions, etc. that refer to particular lines of code. It's very convenient, but the usage is problematic because those URLs don't have long-term persistence. That is, most of the time the URLs look like:
https://opengrok/source/xref/PATH/FILE#192
which refers to line 192 of whatever the latest version of FILE that OpenGrok has indexed. If that file changes, the URL might not longer be valid. It'd be better to use URLs like:
https://opengrok/source/xref/PATH/FILE?r=186#192
to refer to a specific revision. Can there be an option to make OpenGrok search result links always explicitly specify the revision number?
The text was updated successfully, but these errors were encountered: