diff options
author | Simon McVittie <smcv@collabora.com> | 2020-06-10 09:47:15 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2020-06-10 10:47:31 +0000 |
commit | eeef787418d7733f145a425a634669a53804ae6c (patch) | |
tree | 006941aa5e63b59ce2299e0def9871733df3bc49 /dbus/dbus-shell.h | |
parent | 55911d3ca92a25c15d8ff2963b555488418942ea (diff) | |
download | dbus-eeef787418d7733f145a425a634669a53804ae6c.tar.gz |
Normalize C source files to end with exactly one newline
Some editors automatically remove trailing blank lines, or
automatically add a trailing newline to avoid having a trailing
non-blank line that is not terminated by a newline. To avoid unrelated
whitespace changes when users of such editors contribute to dbus,
let's pre-emptively normalize all files.
Unlike more intrusive whitespace normalization like removing trailing
whitespace from each line, this seems unlikely to cause significant
issues with cherry-picking changes to stable branches.
Implemented by:
find . -name '*.[ch]' -print0 | \
xargs -0 perl -0777 -p -i -e 's/\n+\z//g; s/\z/\n/g'
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'dbus/dbus-shell.h')
-rw-r--r-- | dbus/dbus-shell.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/dbus/dbus-shell.h b/dbus/dbus-shell.h index 06da274e..e6f6b595 100644 --- a/dbus/dbus-shell.h +++ b/dbus/dbus-shell.h @@ -37,5 +37,3 @@ dbus_bool_t _dbus_shell_parse_argv (const char *command_line, DBUS_END_DECLS #endif /* DBUS_SHELL_H */ - - |