| 1 |
# The old test .ok files are expected to use LF line endings, even on Windows. |
| 2 |
# In src/testdir/Make_mvc.mak and src/testdir/Make_ming.mak, the test result |
| 3 |
# files .out are converted to LF line endings before being compared. |
| 4 |
# Therefore, if the .ok files' line endings are not specified and are |
| 5 |
# converted to CRLF, the comparison between .ok and .out will fail. |
| 6 |
src/testdir/test*.ok text eol=lf |
| 7 |
|
| 8 |
# This ok file contains literal CR LF endings. Should not be touched by git, |
| 9 |
# so handle as binary |
| 10 |
src/testdir/test21.ok -text |
| 11 |
|
| 12 |
# `vim.pot` is updated every time any of the *.c files are modified. And as it |
| 13 |
# contains line numbers for strings from *.c files, inserting a line into a |
| 14 |
# single .c file may cause many lines in the `vim.pot` file to be updated. |
| 15 |
# |
| 16 |
# This generates a lot of "noise" in the diffs. And especially considering that |
| 17 |
# `vim.pot` is a generated file, looking at changes in this file is not useful. |
| 18 |
# |
| 19 |
# By marking it as binary we tell the git machinery that it should not be |
| 20 |
# presented to the user in patches, use "git diff --text" to override |
| 21 |
src/po/vim.pot -diff |
| 22 |
|
| 23 |
# Although vim.pot has been marked as binary, you may want to check the textual differences |
| 24 |
# using git --text but still want to ignore some noisy output like: |
| 25 |
# - POT-Creation Date |
| 26 |
# - comments pointing to the message source location in |
| 27 |
# *.c/*.h/*.vim/*.cpp/*.in/*.xs files followed by line numbers |
| 28 |
# Note: location comments should be no longer part of vim.pot, since commit 2844765e903214490e1 |
| 29 |
# which add the --no-location argument for xgettext to no longer ouput such comments |
| 30 |
# |
| 31 |
# To ignore certain changes, setup a custom textconv filter using: |
| 32 |
# git config diff.ignore_vim_pot.textconv "grep -Ev '^.(POT-Creation-Date:|.*\\.([ch]|vim|in|xs|cpp):).*$'" |
| 33 |
src/po/vim.pot diff=ignore_vim_pot |
| 34 |
|
| 35 |
# GitHub reacts to the `linguist-generated` attribute, by ignoring marked files |
| 36 |
# for the repository's language statistics and hiding changes in these files |
| 37 |
# by default in diffs. |
| 38 |
# |
| 39 |
# https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github |
| 40 |
src/po/vim.pot linguist-generated=true |
| 41 |
*.dump linguist-generated=true |
| 42 |
|
| 43 |
runtime/syntax/testdir/input/vim_ex_help.vim -text diff linguist-language=vim linguist-detectable=true |