diff options
author | Yar <YarTheGreat@gmail.com> | 2016-11-13 21:18:03 +0300 |
---|---|---|
committer | YarNayar <YarTheGreat@gmail.com> | 2016-11-15 20:51:21 +0300 |
commit | 8782bb96cca3ade2b367f588fd8332906dcc2d1b (patch) | |
tree | 9f46f21807532db46d72cd5f4936d088368f5fd7 /shared | |
parent | 5b876592b47209e431d37b281aacb187df870ea3 (diff) | |
download | gitlab-ce-8782bb96cca3ade2b367f588fd8332906dcc2d1b.tar.gz |
Unify anchor link format for MR diff files !7298
Right now, the following naming scheme for diff files is used: diff-1, diff-2, ... and also we have "internal" format which is file-path-HASH, where HASH is sha1 of file path.
Besides, we have HASH_lineA_lineB format to link exact line number in MR diff. It makes sence to unify the way we link diff from outside, while leave "file-path-HASH" format for internal (js) usage.
Changes in this commit allow to link diff just by HASH, if we don't want specify exact lines, also it changes "file-path-HASH" and "diff-NUMBER" links in code to this unified format.
Inspired by #24010 and !7298
Diffstat (limited to 'shared')
0 files changed, 0 insertions, 0 deletions