Skip to content

Use git rev-parse origin/<branch-name> to get latest pushed ref #792

@mrexox

Description

@mrexox

⚡ Summary

Instead of using @{push} or HEAD -> ... ref for getting files diffs, use the latest pushed commit hash on the current branch. And HEAD -> ... as a fallback.

Value

Behavior and configuration changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestA new lefthook feature description

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions