Commit graph

7 commits

Author SHA1 Message Date
Norbert Thiebaud
73c40f9574 fix issue with repeated I in case of amend commit
Change-Id: I2f0f02fb545ae6d63f2d4e46327f6ee402ab608c
2012-05-14 02:37:52 -05:00
Norbert Thiebaud
298fbdc42a commit-hook: tweak add_ChangeId() to tolerate git-am -s behavior
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-05-03 03:28:53 -05:00
Norbert Thiebaud
18118cd9c5 add gerrit ChangeId generation to commit-msg git hook
Change-Id: I30c370f0479743a831be29a0fa7cb447c7119ee4
2012-04-26 17:26:15 -05:00
Miklos Vajna
81dbafd122 git-hooks: commit-msg should not search for whitespace in the diff itself
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-24 18:04:20 +01:00
Norbert Thiebaud
04b2736ac9 call the gerrit commit-msg hook if present
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
2012-03-06 04:12:42 -06:00
Lionel Elie Mamane
5403fa516b commit-msg hook: allow commit message that *starts* with an asterisk 2011-11-15 09:13:19 +01:00
Jan Holesovsky
60f200caa4 git-hooks: Copy them from the build repo. 2010-11-30 20:25:21 -06:00