2 # Line endings normalization: http://wiki.openpilot.org/display/Doc/Coding+Style
3 # You need at least git 1.7.2 for this to work (previous versions ignore text and eol attributes).
5 # To merge your old branch with new normalized version use the following git option:
6 # git merge ... -X renormalize
8 # To reformat your local branch completely make sure you have committed all local changes first.
9 # Then use the following bash commands:
11 # Minimal normalization:
12 # git rm --cached -r .
15 # git commit -m "Normalize line endings"
17 # Or full normalization (don't do that on Windows, it breaks file modes):
18 # git rm --cached -r .
19 # git diff --cached --name-only -z | xargs -0 git add
20 # git commit -m "Normalize line endings"
21 # git ls-files -z | xargs -0 rm
25 # Set default behaviour (do not convert line endings regardless of local git core settings)
28 # All *.txt files in the root should be Windows-readable (CRLF)
31 # Root Makefile has LF line endings
34 # More attributes are defined in per-directory .gitattributes which override this file
36 # Not needed in source distribution for building GCS
37 /artwork/ export-ignore
38 /flight/ export-ignore
39 /hardware/ export-ignore