Project

zapwhite

0.0
Low commit activity in last 3 years
A long-lived project that still receives updates
A simple tool to normalize whitespace in git repositories.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

= 5.9.1
= 3.1.5

Runtime

 Project Readme

zapwhite

Build Status

A simple tool to normalize whitespace in git repositories. The tool:

  • removes trailing whitespace from each line
  • ensures files end with a new line
  • ensure files are in ASCII format with no invalid UTF sequences
  • ensures dos files use dos line endings and all other files do not.

Files that are part of the repository are candidates for normalization. (It is sufficient for the file to be staged). Files are matched against patterns supplied either in the command line or in the .gitattributes file associated with the repository.

The tool will ensure files annotated with text will be processed and files with the eol=crlf attribute will be treated as dos files. If the file has an encoding attribute, the tool will not try to convert to ASCII. The tool will also scan and remove duplicate new lines if any file has a attribute -dupnl. The tool will not enforce end of file new lines if attribute -eofnl is set.