[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180119095141.GA29479@tigerII.localdomain>
Date: Fri, 19 Jan 2018 18:51:41 +0900
From: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
To: Rasmus Villemoes <rasmus.villemoes@...vas.dk>
Cc: Steven Rostedt <rostedt@...dmis.org>,
Petr Mladek <pmladek@...e.com>,
Sergey Senozhatsky <sergey.senozhatsky@...il.com>,
akpm@...ux-foundation.org, linux-mm@...ck.org,
Cong Wang <xiyou.wangcong@...il.com>,
Dave Hansen <dave.hansen@...el.com>,
Johannes Weiner <hannes@...xchg.org>,
Mel Gorman <mgorman@...e.de>, Michal Hocko <mhocko@...nel.org>,
Vlastimil Babka <vbabka@...e.cz>,
Peter Zijlstra <peterz@...radead.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Jan Kara <jack@...e.cz>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
Tetsuo Handa <penguin-kernel@...ove.SAKURA.ne.jp>,
rostedt@...e.goodmis.org, Byungchul Park <byungchul.park@....com>,
Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>,
Tejun Heo <tj@...nel.org>, Pavel Machek <pavel@....cz>,
linux-kernel@...r.kernel.org
Subject: Re: [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
Powered by blists - more mailing lists