Files
TC_iTomcat-ES2-Detector-Tow…/.gitattributes
Federico Rojas 9748047085 Add files and configuration for filters
Changes to be committed:
    modified:   .gitattributes
    modified:   bitbucket-pipelines.yml
    new file:   filter/cleanCode.sed
    new file:   filter/gitconfig
    new file:   filter/ignoreTargetNetId.sed
2023-02-03 16:09:09 +01:00

34 lines
1.0 KiB
Plaintext
Executable File

# end of line conversion CLRF -- LF
# Default is auto
* text=auto
# Hidden .git files: CRLF for convenience
.gitattributes text eol=crlf
.gitignore text eol=crlf
# Shell scripts must be LF
*.sh text eol=lf
# Tc files must be CRLF
*.plcproj text eol=crlf
*.Tc* text eol=crlf filter=cleanCode
*.tsproj text eol=crlf filter=ignoreNetId
*.txt text eol=crlf
*.xml text eol=crlf
*.xti text eol=crlf
# Configure the following in TwinCAT:
# TOOLS -> Options -> TwinCAT -> PLC Environment -> Write Options -> Separate LineIDS : True
# To activate the filter, run
#git config filter.ignoreNetId.clean 'sed -b -f filter/ignoreTargetNetId.sed'
#git config filter.cleanCode.clean 'sed -b -f filter/cleanCode.sed'
# the check if the filter is there by running
# cat ../../../../.git/modules/solution/tc_project_app/tc_pils/tc_pils_generic/config
#[filter "ignoreNetId"]
# clean = sed -f filter/ignoreTargetNetId.sed
#[filter "cleanCode"]
# clean = sed -f filter/cleanCode.sed