* [PATCH 0/3] Fix assorted white space damage
@ 2007-05-12 11:09 Marco Costalba
2007-05-12 20:45 ` Junio C Hamano
2007-05-13 1:45 ` Junio C Hamano
0 siblings, 2 replies; 6+ messages in thread
From: Marco Costalba @ 2007-05-12 11:09 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Git Mailing List
Following there is a 3 patch series to remove stealth whitespace.
I have used the new 'cleanfile' script by H. Peter Anvin, just merged
in Linux tree.
The script cleans up various classes of stealth whitespace. In
particular, it cleans up:
- Whitespace (spaces or tabs)before newline;
- DOS line endings (CR before LF);
- Space before tab (spaces are deleted or converted to tabs);
- Empty lines at end of file.
Tested with
make
make install
make test
Marco
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 0/3] Fix assorted white space damage
2007-05-12 11:09 [PATCH 0/3] Fix assorted white space damage Marco Costalba
@ 2007-05-12 20:45 ` Junio C Hamano
2007-05-13 3:29 ` Marco Costalba
2007-05-13 1:45 ` Junio C Hamano
1 sibling, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2007-05-12 20:45 UTC (permalink / raw)
To: Marco Costalba; +Cc: Git Mailing List
Allow me to chuck these at this moment. Could you redo this as
the first thing after v1.5.2 final, please?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 0/3] Fix assorted white space damage
2007-05-12 11:09 [PATCH 0/3] Fix assorted white space damage Marco Costalba
2007-05-12 20:45 ` Junio C Hamano
@ 2007-05-13 1:45 ` Junio C Hamano
2007-05-13 10:31 ` Johannes Schindelin
1 sibling, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2007-05-13 1:45 UTC (permalink / raw)
To: Marco Costalba; +Cc: Git Mailing List
"Marco Costalba" <mcostalba@gmail.com> writes:
> Following there is a 3 patch series to remove stealth whitespace.
>
> I have used the new 'cleanfile' script by H. Peter Anvin, just merged
> in Linux tree.
>
> The script cleans up various classes of stealth whitespace. In
> particular, it cleans up:
>
> - Whitespace (spaces or tabs)before newline;
> - DOS line endings (CR before LF);
> - Space before tab (spaces are deleted or converted to tabs);
> - Empty lines at end of file.
I haven't checked the script, but "git-apply --whitespace=strip"
can be used to do pretty much the same job with this sequence,
except the last one (do it with a copy of repository if you do
not want "git clean -x" to lose untracked):
$ git checkout master
$ rm -f .git/index
$ git checkout HEAD -- t/
$ git clean -x -d
$ git diff -R --binary HEAD >P.diff
$ git apply --index --whitespace=strip P.diff
Then you can check the results, and make a commit.
In the above I explicitly "saved" t/ because we have some test
vectors that need to have trailing whitespaces.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 0/3] Fix assorted white space damage
2007-05-12 20:45 ` Junio C Hamano
@ 2007-05-13 3:29 ` Marco Costalba
0 siblings, 0 replies; 6+ messages in thread
From: Marco Costalba @ 2007-05-13 3:29 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Git Mailing List
On 5/12/07, Junio C Hamano <junkio@cox.net> wrote:
> Allow me to chuck these at this moment. Could you redo this as
> the first thing after v1.5.2 final, please?
>
>
Ok. I will be off-line for the next week.
I will redo when coming back.
Marco
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 0/3] Fix assorted white space damage
2007-05-13 1:45 ` Junio C Hamano
@ 2007-05-13 10:31 ` Johannes Schindelin
2007-05-13 18:57 ` Junio C Hamano
0 siblings, 1 reply; 6+ messages in thread
From: Johannes Schindelin @ 2007-05-13 10:31 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Marco Costalba, Git Mailing List
Hi,
On Sat, 12 May 2007, Junio C Hamano wrote:
> In the above I explicitly "saved" t/ because we have some test vectors
> that need to have trailing whitespaces.
AFAICT the documentation has trailing whitespace also, to indicate that
the paragraph does not end here. Correct me if I'm wrong, and these
trailing whitespaces are not necessary.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 0/3] Fix assorted white space damage
2007-05-13 10:31 ` Johannes Schindelin
@ 2007-05-13 18:57 ` Junio C Hamano
0 siblings, 0 replies; 6+ messages in thread
From: Junio C Hamano @ 2007-05-13 18:57 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: Marco Costalba, Git Mailing List
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> AFAICT the documentation has trailing whitespace also, to indicate that
> the paragraph does not end here. Correct me if I'm wrong, and these
> trailing whitespaces are not necessary.
Thanks for the tip --- I did not know about deliberate trailing
whitespaces there.
It should be easy to verify by comparing the build products
before and after trailing whitespace removal, so I will try to
remember doing that.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-05-13 18:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-12 11:09 [PATCH 0/3] Fix assorted white space damage Marco Costalba
2007-05-12 20:45 ` Junio C Hamano
2007-05-13 3:29 ` Marco Costalba
2007-05-13 1:45 ` Junio C Hamano
2007-05-13 10:31 ` Johannes Schindelin
2007-05-13 18:57 ` Junio C Hamano
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).