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

From: Sergey Senozhatsky
Date: Fri Jan 19 2018 - 04:51:56 EST


On (01/17/18 20:13), Rasmus Villemoes wrote:
[..]
> >> 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 ------------------------

one thing that it changes is that now when you squash commits


# This is the first patch

first patch commit messages

# This is the second patch

second patch commit message

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



those "# This is the first patch" and "# This is the second patch"
won't be removed automatically. takes some time to get used to it.

-ss