You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a small problem with the pre commit hooks that happens pretty often to me.
When the commit failes because of a style error in the code and you fix the styles afterwars but forget to use "git add" for this files, the pre commit hook does NOT fail and the files with the code style errors are commited.
I suggest that before every code style check, all changed to files that are not added to commit, should be stashed first. After the code style stash should be poped again.
The text was updated successfully, but these errors were encountered:
windaishi
added
the
bug
Issues that describe an unexpected behaviour in an existing functionality.
label
Sep 22, 2017
fixpunkt
added
major
"bug" issues that completely break a business process, with no reasonable workaround available.
minor
"bug" issues that are neither "critical" nor "major".
and removed
major
"bug" issues that completely break a business process, with no reasonable workaround available.
labels
Sep 22, 2017
I do actually propose to individually add all changes while simultaneously reviewing them and deciding what should actually be part of the commit (but here is not the right place to discuss this 😉).
I do actually propose to individually add all changes while simultaneously reviewing them and deciding what should actually be part of the commit (but here is not the right place to discuss this 😉).
I review changes before running git commit -a and then review the diff shown in the commit editor again...
There is a small problem with the pre commit hooks that happens pretty often to me.
When the commit failes because of a style error in the code and you fix the styles afterwars but forget to use "git add" for this files, the pre commit hook does NOT fail and the files with the code style errors are commited.
I suggest that before every code style check, all changed to files that are not added to commit, should be stashed first. After the code style stash should be poped again.
The text was updated successfully, but these errors were encountered: