path: root/git_hooks
AgeCommit message (Collapse)AuthorFilesLines
2016-09-28modified hooks to remove trailing whitespaces for help filesPierre-Aime AGNEL1-0/+3
Change-Id: I9763d62ddc9d4f9984743d07000ea0e8d0b8a0af
2016-03-10modified hooks to ease merge commitsPierre-Aime Agnel1-9/+20
Change-Id: I334a1b16a47272c567f7a0f25bf3135150092e61
2016-03-04Git hooks: generate valid commit messages after 3f9d15daClément DAVID1-1/+1
Change-Id: I1ade2f900a3bc9469397168eeda29a72f9ddd095
2016-01-04Indentation hooks: allow XMLINDENT and ASTYLE pre-setClément DAVID1-2/+8
To disable the indentation hooks for only a specific commit, you can now use : $ XMLINDENT=/bin/true git commit or $ ASTYLE=/bin/true git commit Change-Id: If09f32336fece63de1e473bbbb19b7e450a92ed5
2015-12-11Xcos: put ANNOTATION at the end on sortAndFillClément DAVID1-0/+4
On saved files, the objects are sorted per kind. It is much more easier to get the blocks first while debugging content. As the sorting is only performed on the enum value, moving it will perform the job. On the Xcos GUI and as the ANNOTATION will be decoded after the block, they will appears "on top" of the BLOCK and LINK objects which is expected. Change-Id: I966d4229e79f44021c416334c0105b30f894a7cb
2015-12-09fixed the internal commit hook to work on Mac also.Francois Granade1-1/+1
mktemp takes different argument on Linux and Darwin (BSD) Change-Id: I341532fae8331d9f37ea769bfa6a03eb5e8b61fc
2015-05-13Revert modification pushed by error ↵Vincent COUVERT1-2/+2
(, indent of Scilab files deactivated :( Change-Id: I5799eae30824b28035f93f5923b133b880e68f0c
2015-05-07Removed tests using fun2string (removed function).Anais AUBERT1-2/+2
Change-Id: Iaed8834538883fe519b220966c6d6f2a3ca21861
2014-11-03windows hooks : now nw mode is in wscilex, no longer in scilexAntoine ELIAS1-1/+1
Change-Id: I4560aad7f6b8e33e55249ad6125037be92a70fcf
2014-04-16Git pre-commit hook: filter against modified filesClément DAVID1-4/+4
Deleted files produced indentation errors Change-Id: I3f0e4ff9c610049124b8a74ef1698af9721a01c7
2013-08-22Hooks: only call the indenter once and indent .tstClément DAVID1-63/+37
Only calling once each tool improve the speed (especially on scilab indent). Change-Id: I547642daf2ee0ed44db2e9e54148c0caf2b931dd
2013-03-13Add a git hook to launch the indentation on Scilab codeSylvestre Ledru1-1/+22
Change-Id: I22666ef89fcf68bafd20c01783b898a036cd92cb
2012-12-06Update the commit-msg hooks to the one from our gerrit instanceSylvestre Ledru1-43/+113
To reproduce: wget Change-Id: I9cd4381cd0e26e04f124962cfeb46c0400344d1b
2012-11-06also ignore indentation on sundials filesPaul BIGNIER1-1/+2
Change-Id: I7e333bad0f46fe9a5dd390f06cfd76c0c818ef93
2012-09-24* Update of the C/C++/java hooks:Sylvestre Ledru1-2/+2
- use the extended form of the options - remove duplicate options - Add --add-brackets Change-Id: I31410ff1fd4863d70f42e5eb69deecf3c16000de
2012-08-20xmlindent: Work inline. Avoid some race conditions (files being modified ↵Sylvestre Ledru1-2/+2
after the git commit) Change-Id: I93243c8df2f4dd7a49c5e79f71dff992bcab3116
2012-08-10Common command factorizedSylvestre Ledru1-3/+3
Change-Id: I16e2248c681f6cc4533ccdb0d2788b7d94e492e7
2012-07-31Also indent XML files with 4 spaces.Vincent COUVERT1-2/+2
Change-Id: I002f8fa048c18617468aec5337fd4bd1629d08dc
2012-07-30Indentation hook: indent xsl filesClément DAVID1-3/+3
Change-Id: I2409d9db9d664df8aee6e38c34e9c7e05145b161
2012-05-23* Disable the warning caused by jflex codeSylvestre Ledru1-0/+10
* scinotes jflex moved in src/java to match the configuration of helptools * ignore jflex files for the indentation Change-Id: I993e8c17b54224922b5c344d2eee2e5e9835e469
2012-05-22Revert "Skip the indentation for deleted files"Vincent COUVERT1-3/+1
This reverts commit ce01d176e60b8e570a40a158a08ea0e0d0737769 Change-Id: Ide7abf6b4f1b9ea699c01b7de35173def9bb3f9a
2012-05-22Skip the indentation for deleted filesSylvestre Ledru1-1/+3
Change-Id: I68bf0c882bc835966bf3f496286d8a299e3f53a1
2012-03-12Indent hooks: ignore generated files (#2)Clément DAVID1-110/+111
Change-Id: I1504e655b559e9c042b4a83dc07358ad9f59bcee
2012-03-12Indent hooks: ignore generated filesClément DAVID1-0/+1
Change-Id: I013617bfe1220101b6249d026409f43b25b02c87
2012-03-08Git hooks: fix C/C++/Java indentationClément DAVID1-21/+23
Change-Id: I7ad9203a0c06ca68e7e33e0d29db9c73be9fc168
2012-02-01Use spaces for Java indentation as in Scilab checkstyleVincent COUVERT1-1/+1
Change-Id: I286148a87e07bfaa252b4ea259f614814c462c45
2012-01-31Switch to astyle for the C, C++ & Java indentationSylvestre Ledru1-19/+43
Change-Id: I1435140105a2e0520847e568a21554c3463fb9c6
2012-01-13Use xmlindent of xmllint to provide better formated xml filesSylvestre Ledru1-16/+16
Change-Id: I228a806bc1958a5a6739fdc0560c8d315a6437ab
2011-12-14Factorize some codes in the git hooksSylvestre Ledru1-14/+2
Change-Id: I79ec49ce2525941f83a5f35312e9c7d46104baf7
2011-09-02Git hooks: JNI C files should not be indentedClément DAVID1-0/+1
Change-Id: Ic150cb13e32d37bb4ec43b23a98462bee27acede
2011-08-26Also show the linux command (for a lazy c/p/)Sylvestre Ledru1-0/+4
Change-Id: Iaa8761d8aec1379288c3afeb22944d0a62891001
2011-06-24Fix a merge issueSylvestre Ledru1-4/+0
Change-Id: Ic2b8a981c341643f76936b053b12b859999b1966
2011-06-24git hooks recommends now global git optionsSylvestre Ledru1-2/+2
Change-Id: I49de9b383fef17f6fd2ddb3268bce8a0933731c0
2011-06-24deactivate pre-commit on in-progress stateClément DAVID1-0/+22
Change-Id: I53f6f4460ef4f5aa77b515285e0eb6b584c8e159
2011-06-24Hooks: add indent.ignore and xmllint.ignore globs config to pre-commitClément DAVID1-4/+56
Change-Id: I6bcc257a4a4280f1054c7b6d79e8089388f0deca
2011-06-20Add some Git hooks to ease dev.Sylvestre Ledru3-0/+221
Enabled by: mv .git/hooks /tmp/ cd .git/ ln -s ../git_hooks/ hooks Change-Id: I35afa478cb9baef5114e16251811e714f255e00e