Skip to content

Pre commit hooks: Should stash changes before checking #8

@windaishi

Description

@windaishi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues that describe an unexpected behaviour in an existing functionality.minor"bug" issues that are neither "critical" nor "major".

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions