Re: [PATCH v5 1/2] printk: Add console owner and waiter logic to load balance console writes

Rasmus Villemoes
2018-01-17T19:14:38Z

On 2018-01-12 18:11, Steven Rostedt wrote:
> On Fri, 12 Jan 2018 11:54:54 -0500
> Steven Rostedt <rostedt@goodmis.org> wrote:
>
>> #include <linux/module.h>
>> #include <linux/delay.h>
>> #include <linux/sched.h>
>> #include <linux/mutex.h>
>> #include <linux/workqueue.h>
>> #include <linux/hrtimer.h>
>>
>>
>
>
>>
>> Hmm, how does one have git commit not remove the C preprocessor at the
>> start of the module?
>
> Probably just add a space in front of the entire program.

If you use at least git 2.0.0 [1], set commit.cleanup to "scissors".
Something like

git config commit.cleanup scissors

should do the trick. Instead of stripping all lines starting with #,
that will only strip stuff below a line containing

# ------------------------ >8 ------------------------

and git should be smart enough to insert that in the editor it fires up
for a commit message.

[1] https://github.com/git/git/blob/master/Documentation/RelNotes/2.0.0.txt

Rasmus