Skip to content

Autostash uncommitted changes for pre-push hook #1355

@caugner

Description

@caugner

Description

Provide an option to autostash uncommitted changes when running the pre-push hook to avoid side-effects.

What problem it is solving?

We use the pre-commit hook to run linters only on the changed files, and the pre-push hook to run linters on all files and tests.

However, since uncommitted changes aren't staged when the pre-push hook runs, the linters sometimes fail or pass unexpectedly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestA new lefthook feature description

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions