1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v: update the .gitattributes/.gitignore files generated by v init (#16292)

This commit is contained in:
JalonSolov
2022-11-02 14:41:12 -04:00
committed by GitHub
parent d4c83f62b2
commit d11baa691c
2 changed files with 26 additions and 10 deletions

View File

@ -33,15 +33,23 @@ fn init_and_check() ! {
'*.so',
'*.dylib',
'*.dll',
'vls.log',
'',
'# Ignore common editor/system specific metadata',
'.DS_Store',
'.idea/',
'.vscode/',
'*.iml',
'',
].join_lines()
assert os.read_file('.gitattributes')! == [
'*.v linguist-language=V text=auto eol=lf',
'*.vv linguist-language=V text=auto eol=lf',
'*.vsh linguist-language=V text=auto eol=lf',
'**/v.mod linguist-language=V text=auto eol=lf',
'* text=auto eol=lf',
'*.bat eol=crlf',
'',
'**/*.v linguist-language=V',
'**/*.vv linguist-language=V',
'**/*.vsh linguist-language=V',
'**/v.mod linguist-language=V',
'',
].join_lines()