# The old test .ok files are expected to use LF line endings, even on Windows.
# In src/testdir/Make_mvc.mak and src/testdir/Make_ming.mak, the test result
# files .out are converted to LF line endings before being compared.
# Therefore, if the .ok files' line endings are not specified and are
# converted to CRLF, the comparison between .ok and .out will fail.
src/testdir/test*.ok text eol=lf

# This ok file contains literal CR LF endings. Should not be touched by git,
# so handle as binary
src/testdir/test21.ok -text

# `mnv.pot` is updated every time any of the *.c files are modified.  And as it
# contains line numbers for strings from *.c files, inserting a line into a
# single .c file may cause many lines in the `mnv.pot` file to be updated.
#
# This generates a lot of "noise" in the diffs.  And especially considering that
# `mnv.pot` is a generated file, looking at changes in this file is not useful.
#
# By marking it as binary we tell the git machinery that it should not be
# presented to the user in patches, use "git diff --text" to override
src/po/mnv.pot -diff

# Although mnv.pot has been marked as binary, you may want to check the textual differences
# using git --text but still want to ignore some noisy output like:
# - POT-Creation Date
# - comments pointing to the message source location in
#   *.c/*.h/*.mnv/*.cpp/*.in/*.xs files followed by line numbers
# Note: location comments should be no longer part of mnv.pot, since commit 2844765e903214490e1
# which add the --no-location argument for xgettext to no longer ouput such comments
#
# To ignore certain changes, setup a custom textconv filter using:
# git config diff.ignore_mnv_pot.textconv "grep -Ev '^.(POT-Creation-Date:|.*\\.([ch]|mnv|in|xs|cpp):).*$'"
src/po/mnv.pot diff=ignore_mnv_pot

# GitHub reacts to the `linguist-generated` attribute, by ignoring marked files
# for the repository's language statistics and hiding changes in these files
# by default in diffs.
#
# https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
src/po/mnv.pot linguist-generated=true
*.dump linguist-generated=true

runtime/syntax/testdir/input/mnv_ex_help.mnv -text diff linguist-language=mnv linguist-detectable=true
