Commit Graph

18 Commits

Author SHA1 Message Date
andy
f0554905a1 ENH: Removed OpenCFD-specific behaviour out of hooks 2011-04-06 15:14:25 +01:00
Mark Olesen
64b43070c9 GIT: skip tab check on Makefiles (not just wmake/Makefiles) 2011-02-16 09:57:03 +01:00
Mark Olesen
ae0bf2b2fe BUG: single instead of double quotes in git hooks message 2011-01-13 11:23:03 +01:00
Mark Olesen
d8fb38fbc1 BUG: single instead of double quotes in git hooks message 2010-12-14 17:52:27 +01:00
Mark Olesen
f4c1042f80 BUG: had double quotes instead of single quotes in git hooks 2010-11-17 17:07:59 +01:00
Mark Olesen
a5a62467b5 ENH: skip tab-checking in git hooks for potential wmake/ makefiles 2010-11-17 11:39:37 +01:00
Mark Olesen
b06c778193 ENH: add bin/tools/pre-receive-hook
- allows us to follow the changes
2010-11-10 16:25:40 +01:00
Mark Olesen
ba19b63907 STYLE: generalize functions in pre-commit-hook
- improves code re-usage for pre-receive hook
2010-11-10 11:50:00 +01:00
Mark Olesen
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
Mark Olesen
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
Mark Olesen
f2793ffd51 ENH: allow #directive lines to exceed the 80-col line length limit 2010-07-27 17:01:41 +02:00
andy
7c1ca51598 Revert "ENH: Added DOS-style line ending check to git hook"
This reverts commit 102f797016.
2010-07-23 12:06:51 +01:00
andy
102f797016 ENH: Added DOS-style line ending check to git hook 2010-07-23 10:08:47 +01:00
Mark Olesen
e099012556 STYLE: use regex to avoid extra loop in pre-commit-hook 2010-07-23 09:31:18 +02:00
Mark Olesen
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
Mark Olesen
3b7afb3ffb STYLE: add some comments to pre-commit-hook, unclutter some syntax 2010-07-21 13:50:20 +02:00
Mark Olesen
a76dd34d47 Adjust bin/tools/pre-commit-hook to avoid triggering pre-receive hook 2010-07-21 13:34:46 +02:00
Mark Olesen
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