[Libreoffice] [PATCH] git-hooks: don't stage unstaged hunks before commit

Jan Holesovsky kendy at suse.cz
Wed Mar 2 21:27:16 PST 2011


Hi Miklos,

On 2011-03-03 at 02:15 +0100, Miklos Vajna wrote:

> Here is a git pre-commit patch. The motivation is that I regularly use
> git add -p to stage a part of a file, then git commit to commit the
> staged changes only. The hook staged the entire file till now in case I
> introduced a whitespace error. The patch should fix this issue.
> 
> OK to push to master?

Looks good to me, please go ahead :-)

Regards,
Kendy



More information about the LibreOffice mailing list