Auto reference for repository file
Description
Currently when referencing a file in the repository, I have to put its link directly (e.g. http://localhost:3000/gitlab-org/gitlab-test/blob/master/files/js/commit.coffee#L3) or Link it using something like
[`files/js/commit.coffee#L3`](http://localhost:3000/gitlab-org/gitlab-test/blob/master/files/js/commit.coffee#L3`)
Proposal
Autolink the file reference, like it's done with commits or comments:
type | raw | short link |
---|---|---|
Commit | http://localhost:3000/gitlab-org/gitlab-test/commit/c347ca2e140aa667b968e51ed0ffe055501fe4f4 |
c347ca2e |
Comment | http://localhost:3000/gitlab-org/gitlab-test/merge_requests/6432#note_1142 |
!6432 (comment 1142) |
So for the file reference, it could be something like:
For current project:
[master/files/js/commit.coffee#L3](http://localhost:3000/gitlab-org/gitlab-test/blob/master/files/js/commit.coffee#L3)
For external project:
[/root/test/master/files/js/commit.coffee#L3](http://localhost:3000/root/test/blob/master/files/js/commit.coffee#L3)
I doesn't necessary have to look like this, it only have to provide these informations: which file ? which line ? which project ?
Links / references
N/A
Documentation blurb
Why should someone use it; what's the underlying problem.
To reference repository files without hustle.
What is the solution.
Automatic reference.
How does someone use this
Link the file directly (like it's done with comments for example).