It would be aweome when we could create a link to a specific file, which always points to the latest tip of the file.
i.e. always the file on branch default, but not a specific commit. Currently there is a commitid in the URL of the file.
Hi,
Such link works, you can use similar url:
https://code.rhodecode.com/rhodecode-enterprise-ce/files/tip/CHANGES.rst
The ‘tip’ works for all backends, and also can be a branch name e.g.
https://code.rhodecode.com/rhodecode-enterprise-ce/files/stable/CHANGES.rst
Or a tag:
https://code.rhodecode.com/rhodecode-enterprise-ce/files/v4.6.0/CHANGES.rst
We use full commit_id as link to ensure you’re seeing the file at same commit you’re browsing the file tree, otherwise it could be a situation that you click a file, which someone pushed a change to (eg delete this file) and this would show you an error, so file browsing is always pinned to specific commit.
1 Like