office-gobmx/git-hooks
Miklos Vajna 125de239f2 git-hooks: don't stage unstaged hunks before commit
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-03-03 13:02:31 +01:00
..
commit-msg git-hooks: Copy them from the build repo. 2010-11-30 20:25:21 -06:00
post-merge git-hooks: Copy them from the build repo. 2010-11-30 20:25:21 -06:00
pre-commit git-hooks: don't stage unstaged hunks before commit 2011-03-03 13:02:31 +01:00