diff options
Diffstat (limited to '.git-hooks')
-rwxr-xr-x | .git-hooks/pre-commit | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index 8c4e86345aa1..5ab539466827 100755 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -204,6 +204,8 @@ sub check_style($) print("and the clang-format rules. Fixing these now automatically.\n"); print("Running '$clang_format -i " . join(" ", @bad_names) . "' for you...\n"); system("$clang_format -i " . join(" ", @bad_names)); + # TODO this stages all local modifications, staging originally + # unstaged hunks. system("git add " . join(" ", @bad_names)); print("Done.\n"); } |