summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework.scss
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-04-29 12:40:13 +0000
committerRémy Coutable <remy@rymai.me>2016-04-29 12:40:13 +0000
commitbfc6a0e3718c1b4d5e3d2adcc1ef16cf5274df5c (patch)
treec5d1fb7ef245438397d72ea4a9e0a1dd20584d89 /app/assets/stylesheets/framework.scss
parentb8f28628f59b38136aba5704d3feb84af3eaa567 (diff)
parent28dcdb27795de79337df7aeff1107114cdffc2f9 (diff)
downloadgitlab-ce-bfc6a0e3718c1b4d5e3d2adcc1ef16cf5274df5c.tar.gz
Merge branch 'gitattributes' into 'master'
Support supressing text file diffs on the default branch with .gitattributes This change allows users to suppress diffs for text files by adding an entry to the `.gitattributes` file. To take effect the file present at the HEAD of the default branch. When rendering a diff, if the file is text according to the charlock holmes gem (via the `text?` method) but the file is not diffable according to the project repository, then a message is displayed stating that the diff was suppressed. ![image](/uploads/2e119b725875a301e30d9ad482e283b3/image.png) I looked into ways to do this using a `binary` flag as suggested by @stanhu in [this comment](https://gitlab.com/gitlab-org/gitlab-ce/issues/2315#note_4435454), however, there was no good way to seperate what was a real binary file from one that had been marked as not diffable in `.gitattributes`. Fixes and closes gitlab-org/gitlab-ce#2315. See merge request !3806
Diffstat (limited to 'app/assets/stylesheets/framework.scss')
0 files changed, 0 insertions, 0 deletions