URL to a file on latest tip (or master / default branch)


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.


Such link works, you can use similar url:


The ‘tip’ works for all backends, and also can be a branch name e.g.


Or a tag:


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