[Libreoffice] automagic 'fix' in pre-commit hook considered harmful
Tor Lillqvist
tlillqvist at novell.com
Wed Jun 22 02:31:22 PDT 2011
>>> On 2011-06-22 at 10:16, <nthiebaud at gmail.com> wrote:
> Sure enough: do 2 changes in a file, in 2 separate hunk. in one of
> these change add trailing spaces... then commit only that hunk -> the
> second hunk 'disappear'
The problem that I have noticed is when having changes to several files, but committing just some of the files => the other files are reset back to unchanged state. But I guess the mechanism behind this problem is the same as what you noticed?
So if I have changes to several files but want to commit them in separate commits, I have been careful to always use git commit --no-verify ...
--tml
More information about the LibreOffice
mailing list