[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Diffutils-devel] FYI: maint: convert all TABs to equivalent spaces in i
From: |
Jim Meyering |
Subject: |
[Diffutils-devel] FYI: maint: convert all TABs to equivalent spaces in indentation |
Date: |
Sat, 05 Jan 2019 22:56:06 -0800 |
As promised in https://bugs.gnu.org/31105, I have just made this change
and will push it tomorrow.
commit badccffea49ddc26b72208366f00429cc7ffb9e1 (HEAD -> master)
Author: Jim Meyering <address@hidden>
Date: Sat Jan 5 22:04:57 2019 -0800
maint: convert all TABs to equivalent spaces in indentation
Using this file,
cat > leading-blank.exempt <<\EOF
(\.gitmodules|help2man|pre-commit)$
(?:^|\/)ChangeLog[^/]*$
(?:^|\/)(?:GNU)?[Mm]akefile[^/]*$
\.(?:am|mk)$
EOF
run the following command to convert all non-conforming leading white
space to be all spaces:
git ls-files \
| pcregrep -vf leading-blank.exempt \
| xargs pcregrep -l '^ *\t' \
| xargs perl -MText::Tabs -ni -le \
'$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
Since that changed old NEWS, I also ran "make update-NEWS-hash"
to update the old_NEWS_hash value in cfg.mk.
NEWS | 12 +-
cfg.mk | 2 +-
exgettext | 2 +-
lib/cmpbuf.c | 44 ++--
lib/prepargs.c | 12 +-
src/analyze.c | 752
+++++++++++++++++++++++++++++-----------------------------
src/cmp.c | 470 ++++++++++++++++++------------------
src/context.c | 182 +++++++-------
src/diff.c | 1272
+++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------
src/diff3.c | 1040
++++++++++++++++++++++++++++++++++++++++----------------------------------------
src/dir.c | 232 +++++++++---------
src/ed.c | 44 ++--
src/ifdef.c | 370 ++++++++++++++---------------
src/io.c | 552 +++++++++++++++++++++----------------------
src/sdiff.c | 894
++++++++++++++++++++++++++++++++++-----------------------------------
src/side.c | 258 ++++++++++----------
src/util.c | 570 ++++++++++++++++++++++----------------------
17 files changed, 3354 insertions(+), 3354 deletions(-)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Diffutils-devel] FYI: maint: convert all TABs to equivalent spaces in indentation,
Jim Meyering <=