5 Commits

Author SHA1 Message Date
Torsten Bögershausen
1727999f55 .gitattribute: Cleanup the help for the filter
The initial filter setup procedure was not very clear.
Clean it up by removing a not used line.
Make clear that a command must be executed rather than commenting
out lines.
2023-02-14 12:19:39 +01:00
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
Torsten Bögershausen
bfe373e932 .gitattributes: CRLF for all files that need them
Improvements of the CRLF handling:
When a file is checked out on a drive shared with Linux or MacOS,
those OS have different default line endings.
Windows uses CRLF, and Linux/Mac use LF.

To be able to checkout files under Linux/Mac and to get the same
result, mark all known file types with eol=CRLF
2019-12-06 10:52:48 +01:00
Torsten Bögershausen
4ca1f6e110 Normalize all line endings to LF in the repo
Change the CRLF strategie:
All (nearly all) files have LF in the repo, and CRLF in the working tree.
When we started, all files had been commited "as is".
Now it is more and more disturbing that Git shows "^M" in git diff
when a line was added or chenged.
To avoid this, store all files in the repo with LF.

To normalzie existing repos for a crate, run:

Step 1)
(unless you have done that already)
git remote add tc_generic_structure https://bitbucket.org/europeanspallationsource/tc_generic_structure.git

Step 2)
git fetch tc_generic_structure

Step 3)
(master below may be integration)
git merge tc_generic_structure/master  -X renormalize
2019-12-04 16:30:58 +01:00
Federico Rojas
40562b7f40 Add files .gitignore and .gitattributes 2017-11-06 09:04:06 +01:00