This is great for always viewing the state of that resource at that specific commit, but it doesn't work if you always want to view it at its latest revision, i.e. the "head" revision for the given branch of the repository.

It would be great if it were possible to obtain such URL for any resource in a repository, even directories, possibly by removing the commit hash entirely and making the resulting URL always point to the "head" revision of the resource, e.g.:

By providing any of those URL's, or something equivalent / more appropriate, we could e.g. copy & paste that into a mail and send it to a friend / co-worker, and rest assured that they'll always be looking at the latest incarnation of the resource. By embedding commit hashes in the URL's this becomes impossible, and I'm yet to find a way to keep commit hashes from creeping into the URL's.