I have a git pre-commit hook which changes some files if they are corrupt. After the hook is done the changed files are not listed in the current commit. How can I stage the changes from the hook into the current commit?
My hook looks like this:
#!/bin/sh
versionUpdater -editVersion
Which opens a windows forms where I can edit some versions from some files. After I finished editing I want that these changes are in the current commit.
Those changes from the hook are now listed in the next commit.