mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-28 05:37:59 +08:00
CONTRIBUTING.rst: Warn about white space changes
This commit is contained in:
parent
f5e9bae508
commit
9ef5c9a2ff
@ -279,6 +279,12 @@ original FreeBSD code.
|
||||
Rules for Modifying FreeBSD Source
|
||||
==================================
|
||||
|
||||
Do not reformat original FreeBSD code. Do not perform white space changes even
|
||||
if you get git commit warnings. **Check your editor settings so that it does
|
||||
not perform white space changes automatically**, for example adding a newline
|
||||
to the end of the file. White space changes may result in conflicts during
|
||||
updates, especially changes at the end of a file.
|
||||
|
||||
Changes in FreeBSD files must be done using ``__rtems__`` C pre-processor guards.
|
||||
This makes synchronization with the FreeBSD upstream easier and is very
|
||||
important. Patches which do not follow these rules will be rejected. Only add
|
||||
@ -380,12 +386,6 @@ In general, provide empty header files and do not guard includes.
|
||||
For new code use
|
||||
`STYLE(9) <http://www.freebsd.org/cgi/man.cgi?query=style&apropos=0&sektion=9>`_.
|
||||
|
||||
Do not format original FreeBSD code. Do not perform white space changes even
|
||||
if you get git commit warnings. Check your editor settings so that it doesn't
|
||||
perform white space changes automatically, for example adding a newline to the
|
||||
end of the file. White space changes may result in conflicts during updates,
|
||||
especially changes at the end of a file.
|
||||
|
||||
Automatically Generated FreeBSD Files
|
||||
=====================================
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user