lkml.org 
[lkml]   [2018]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 1/2] printk: Add console owner and waiter logic to load balance console writes
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

\
 
 \ /
  Last update: 2018-01-19 10:51    [W:0.210 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site