help explaining precommit remove trailing whitespace script

Posted by Stacia on Stack Overflow See other posts from Stack Overflow or by Stacia
Published on 2010-04-20T17:51:26Z Indexed on 2010/04/20 18:43 UTC
Read the original article Hit count: 387

Filed under:
|
|
|

Could someone help explain what is going on in this precommit hook? I thought changing files would cause them to be restaged.

http://snipplr.com/view/28523/git-precommit-hook-to-fix-trailing-whitespace/

© Stack Overflow or respective owner

Related posts about git

Related posts about pre-commit-hook