summaryrefslogtreecommitdiff
path: root/git-hooks
AgeCommit message (Collapse)AuthorFilesLines
2012-05-14fix issue with repeated I in case of amend commitNorbert Thiebaud1-1/+1
Change-Id: I2f0f02fb545ae6d63f2d4e46327f6ee402ab608c
2012-05-03commit-hook: tweak add_ChangeId() to tolerate git-am -s behaviorNorbert Thiebaud1-4/+6
git-am -s add systematically an empty line before adding the signoff line, which interfere with gerrit's rule that the ChangeID must be in the last paragraph This patch address that be remoming an existing Change-Id from the commit message and re-insterting it at the 'proper' place Change-Id: I I742b17031c6e3da4f9d94dcb0579bce8c496d41d Signed-off-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-04-26add gerrit ChangeId generation to commit-msg git hookNorbert Thiebaud1-3/+106
Change-Id: I30c370f0479743a831be29a0fa7cb447c7119ee4
2012-04-03commit hook preventing commits with SAL_DEBUGLuboš Luňák1-0/+3
2012-03-24git-hooks: commit-msg should not search for whitespace in the diff itselfMiklos Vajna1-1/+1
The additional sed removes every line after seeing the first line starting with a #, just like git will do it later as well. See: http://article.gmane.org/gmane.comp.documentfoundation.libreoffice.devel/26794
2012-03-06call the gerrit commit-msg hook if presentNorbert Thiebaud1-0/+6
This a a prep-work for if and when we use gerrit it is very important to call gerrit's commit-msg hook and the sooner we teach our own hook to play nice with it the less likely we will have issue during migration
2011-11-15commit-msg hook: allow commit message that *starts* with an asteriskLionel Elie Mamane1-1/+1
2011-08-27disable po handling for the core git-hookNorbert Thiebaud1-24/+0
2011-08-16put git hook on a diet. concentrate on safe, cheap and globally usefulNorbert Thiebaud1-93/+32
2011-08-15git-hooks: whitespace problems are not errors in non-source filesMiklos Vajna1-4/+7
2011-06-22fixing trailing whitespaces in pre-commit hook is broken.Norbert Thiebaud1-89/+53
The pre-commit hook had code that was trying to detect and _fix_ trailing whitespaces. this code was broken. If you try to do a partial commit on a file and the part your are partially commiting contain offending lines, the process to try to fix them drop the rest of the changes. In general it is very dangerous to try to be cute in a pre-commit hook a pre-commit hook you tell you something is wrong, and preferably were it think that it is wrong... but should not attempt to 'fix' things silently. So I did not try to 'fix' that code. Instead I replaced it by a straight forward 'detection-only', lifted from the linux-kernel's git hook.
2011-05-17do not overwrite file if no whitespace was strippedDavid Tardon1-3/+9
2011-04-27check if file exists in *.po hookAndras Timar1-1/+1
otherwise a removed file would be recreated
2011-04-27use git hook instead of gitattributes filter for *.po filesAndras Timar1-0/+10
2011-04-24do not try to check removed filesDavid Tardon1-1/+1
2011-04-22Easy hack Improve git pre-commit hookMaxime Côté1-27/+28
Change of the function check_and_fix_whitespace() to check only file with the extension listed (c|cpp|cxx|h|hrc|hxx|idl|inl|java|map|mk|MK|pmk|pl|pm|sdi|sh|src|tab|xcu|xml)
2011-03-08Merge remote branch 'origin/feature/gnumake2.1' into integration/dev300_m101Norbert Thiebaud1-3/+4
* origin/feature/gnumake2.1: (202 commits) Revert "starmath need to have _DLL_ defined, even on MacOS" tweak library name on MacOS starmath need to have _DLL_ defined, even on MacOS add helper to set-up the libraries env, to run executable during build the startmath module in Module_ooo must use the name of the directory add starmath libraries to Repository.mk make linkoo scan the solver too, for Norbert's gnumake work -Wunitialized is not compatible with -DDEBUG rename gb_HIRESTIME to gb_LOWRESTIME. Assume highres precision by default add missing library for sc. Massage the delivered libraries name. support USE_GMAKE=1 envvar to build with gmake the modules that can be. add sc in the list of gmake-Modules support for an alternate gbuild.lst to support gmake build add a few comment to balance quotes, to make the editor less confused add all the sub-directory of the RESLOCATION to search for resource add calc related library to the Repository tweak MacOs platform specific include to build on Macos fixing variable exports for windows compiler (thanks ause) fixing variable exports for windows compiler (thanks ause) also accept debug=t ... Conflicts: Makefile.in Module_ooo.mk Repository.mk RepositoryFixes.mk configure.in solenv/bin/build.pl solenv/bin/modules/RepositoryHelper.pm solenv/bin/packmodule solenv/doc/gbuild/doxygen.cfg solenv/doc/gbuild/solenv/gbuild/types.mk solenv/gbuild/AllLangResTarget.mk solenv/gbuild/BuildDirs.mk solenv/gbuild/ComponentTarget.mk solenv/gbuild/Deliver.mk solenv/gbuild/Executable.mk solenv/gbuild/Helper.mk solenv/gbuild/Library.mk solenv/gbuild/LinkTarget.mk solenv/gbuild/Module.mk solenv/gbuild/Output.mk solenv/gbuild/Package.mk solenv/gbuild/PrecompiledHeaders.mk solenv/gbuild/SdiTarget.mk solenv/gbuild/StaticLibrary.mk solenv/gbuild/TargetLocations.mk solenv/gbuild/gbuild.mk solenv/gbuild/platform/linux.mk solenv/gbuild/platform/macosx.mk solenv/gbuild/platform/solaris.mk solenv/gbuild/platform/windows.mk solenv/gbuild/processdelivered.awk solenv/gbuild/processdeps.awk solenv/inc/unxgcc.mk soltools/mkdepend/def.h soltools/mkdepend/include.c
2011-03-03git-hooks: don't stage unstaged hunks before commitMiklos Vajna1-0/+16
We call 'git add' for files where we fixed whitespaces in. This is a problem in case the user staged only part of a file - as a result we do not just fix up whitespace in the patch but also stage other hunks of the file. Fix the problem by removing/restoring not staged changes before/after whitespace fixing. The operation is cheap enough, as it's a noop in case there are no unstaged changes.
2011-01-20git-hooks: warn about undocumented classes in new hxx files on commitMiklos Vajna1-0/+15
2011-01-10new gbuild systemNorbert Thiebaud1-3/+4
2010-12-07Use "/usr/bin/env perl" to make it work on systems without /usr/bin/perl.Thomas Klausner1-1/+1
2010-11-30git-hooks: Copy them from the build repo.Jan Holesovsky3-0/+261