From: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>, xen-devel@lists.xen.org
Subject: Re: Dangling whitespaces in xen code
Date: Wed, 29 Aug 2018 20:01:59 +0300 [thread overview]
Message-ID: <5c2e9021-a7fb-2eea-b8c6-49ed11f93af5@epam.com> (raw)
In-Reply-To: <68e28277-b453-cfd2-c1c5-0c64b22cb69d@citrix.com>
Hi Andrew,
On 29.08.18 19:22, Andrew Cooper wrote:
> On 29/08/18 17:11, Volodymyr Babchuk wrote:
>> Hello all,
>>
>> During xen hacking I often encounter white spaces at EOLs. It is quite
>> annoying to see red marker in, say, xen/arch/arm/domctl.c:25
>>
>> I used sed to create patch that removes all such whitespaces. Command
>> is simple:
>>
>> # find xen -name "*.[ch]" | xargs sed -i "s/[[:space:]]*$//g"
>>
>> Problem is that patch is quite big:
>>
>> 285 files changed, 1463 insertions(+), 1463 deletions(-)
>>
>> So what is the best way to publish this fix? I can just send it to ML
>> as one patch. There is no functional changes, so should I add
>> maintainers?
>>
>
> There are more files than that. By my count, its:
>
> 307 files changed, 1586 insertions(+), 1586 deletions(-)
I tried to fix only *.c and *.h files. With COPYINGs, READMEs,
makefiles, and so on I got
309 files changed, 1599 insertions(+), 1599 deletions(-)
> In the past, it has been the view that fixing this all in one go might
> be too intrusive to people developing series. Then again, since the
> last time this was discussed, we've switched from hg to git as a base
> VCS, and git rebase has no issues coping with trailing whitespace changes.
Also there is --ignore-space-change and --ignore-whitespace, so
developers and maintainers will be able to rebase changes without much
effort.
> We've been fixing it as we go, but it is very slow going. I've got half
> a mind to suggest that we just commit a single fix and call it done...
I can't find a better solution. At first I though to fix them manually
in places where I see them. But then, why should I include fixes for
some files and not include for others? How to chose which files should
be fixed and which - not? So, I think it is better to fix all in single
commit.
Another solution that I can see is to ask maintainers to provide patches
for own subsystems.
--
Volodymyr Babchuk
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2018-08-29 17:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-29 16:11 Dangling whitespaces in xen code Volodymyr Babchuk
2018-08-29 16:22 ` Andrew Cooper
2018-08-29 17:01 ` Volodymyr Babchuk [this message]
2018-08-29 17:09 ` Andrew Cooper
2018-08-30 7:54 ` Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5c2e9021-a7fb-2eea-b8c6-49ed11f93af5@epam.com \
--to=volodymyr_babchuk@epam.com \
--cc=andrew.cooper3@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).