Skip to content

Commit be863b2

Browse files
chrisbraillia-bobyr
andcommitted
translation: mark vim.pot as linguist-generated, ignore msg locations in vim.pot
Update the textconv filter to filter out changes in the comments pointing to the location of the message. Also remove the comments in vim.pot that mention the message location. Since those will be ignored using vims textconv filter, it does not make sense to keep them, they would get out of sync anyhow. closes: #17782 Co-authored-by: Illia Bobyr <illia.bobyr@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 824286c commit be863b2

2 files changed

Lines changed: 12 additions & 3063 deletions

File tree

.gitattributes

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@ src/testdir/test42.in diff
33
# vim.pot may change just by incrementing a patch number
44
# so ignore the following differences:
55
# - POT-Creation Date
6-
# - comments in version.c for line numbers:
6+
# - comments pointing to the message source location in
7+
# *.c/*.h/*.vim/*.cpp/*.in/*.xs files followed by line numbers
78
# set this up using:
8-
# git config diff.ignore_pot_date.textconv 'grep -Ev "^.(POT-Creation-Date:|.*version\.c).*"'
9-
src/po/vim.pot diff=ignore_pot_date
9+
# git config diff.ignore_vim_pot.textconv "grep -Ev '^.(POT-Creation-Date:|.*\\.([ch]|vim|in|xs|cpp):).*$'"
10+
src/po/vim.pot diff=ignore_vim_pot
11+
12+
# GitHub reacts to the `linguist-generated` attribute, by ignoring marked files
13+
# for the repository's language statistics and hiddning changes in these files
14+
# by default in diffs.
15+
#
16+
# https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
17+
src/po/vim.pot linguist-generated=true

0 commit comments

Comments
 (0)