From: Jim Meyering Date: Mon, 3 Aug 2009 15:10:13 +0000 (-0400) Subject: Convert all TABs-as-indentation to spaces. X-Git-Tag: 1.0.66~30 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=2f1a50d81671810256dce0852e6b1e0810ac44af;hp=2f1a50d81671810256dce0852e6b1e0810ac44af Convert all TABs-as-indentation to spaces. Do it by running this command: [exempted files are matched via .x-sc_TAB_in_indentation] git ls-files \ | pcregrep -vf .x-sc_TAB_in_indentation \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_' ---