Re: [PATCH 2/3] git-apply: complain about >=8 consecutive spaces in initial indent

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 2/3] git-apply: complain about >=8 consecutive spaces in initial indent

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:35

"J. Bruce Fields" [off-list ref] writes:
Complain if we find 8 spaces or more in a row as part of the initial
whitespace on a line, and (with --whitespace=stripspace) replace such by
a tab.

Well, linux's checkpatch.pl complains about this sort of thing.
Some people program in Python, so I am afraid that this needs to
be a separate option.

Maybe it is time to redo the --whitespace options as bitmasks so
that we can say --whitespace-fix=tab,tail,lines to pick and
choose which kinds of breakage to fix?

Re: [PATCH 2/3] git-apply: complain about >=8 consecutive spaces in initial indent

From: J. Bruce Fields <hidden>
Date: 2016-06-15 22:43:35

On Sun, Sep 16, 2007 at 05:24:31PM -0700, Junio C Hamano wrote:
"J. Bruce Fields" [off-list ref] writes:
quoted
Complain if we find 8 spaces or more in a row as part of the initial
whitespace on a line, and (with --whitespace=stripspace) replace such by
a tab.

Well, linux's checkpatch.pl complains about this sort of thing.
Some people program in Python, so I am afraid that this needs to
be a separate option.
OK.
Maybe it is time to redo the --whitespace options as bitmasks so
that we can say --whitespace-fix=tab,tail,lines to pick and
choose which kinds of breakage to fix?
OK.  Or maybe keep the current commandline options and have a
whitespace-style config option someplace?

I'm afraid I won't get to either anytime soon, though, so that project's
up for grabs....

--b.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help