Commit Graph

10 Commits

Author SHA1 Message Date
420ac3b5d0 ENH: skip checks in pre-commit hook when no files have changed
- this usage can correspond to a 'git commit --amend'
2010-08-10 08:39:13 +02:00
1866a2b0fd ENH: improve speed/flexibility of pre-commit-hook
- only search indexed files (BUGFIX)
- search for long-lines is faster when regex is anchored
- use git grep logic instead of sed logic where possible

- add support for running the hook manually as well.
  For example,
      bin/tools/pre-commit-hook  applications/test src/OpenFOAM/db

- add some feedback to pre-commit hook:
  The hook can be really slow, at least let people know that something
  is happening
2010-08-05 10:30:32 +02:00
f2793ffd51 ENH: allow #directive lines to exceed the 80-col line length limit 2010-07-27 17:01:41 +02:00
7c1ca51598 Revert "ENH: Added DOS-style line ending check to git hook"
This reverts commit 102f797016.
2010-07-23 12:06:51 +01:00
102f797016 ENH: Added DOS-style line ending check to git hook 2010-07-23 10:08:47 +01:00
e099012556 STYLE: use regex to avoid extra loop in pre-commit-hook 2010-07-23 09:31:18 +02:00
2a1ccb730e ENH: drop special treatment for C++ comments line length in pre-commit-hook
ENH: report line number for illegal words and for copyrights
2010-07-22 10:29:27 +02:00
3b7afb3ffb STYLE: add some comments to pre-commit-hook, unclutter some syntax 2010-07-21 13:50:20 +02:00
a76dd34d47 Adjust bin/tools/pre-commit-hook to avoid triggering pre-receive hook 2010-07-21 13:34:46 +02:00
b2d6ae091b ENH: made Andy's pre-receive hook into a pre-commit hook
- allows fixes before trying to push
2010-07-21 12:58:43 +02:00