Skip to content

GIT_TEMPLATE_DIR Compatibility #815

Open
@quintrino

Description

@quintrino

⚡ Summary

Git provides the ability to set a standard template for your git setup using the GIT_TEMPLATE_DIR, Lefthook should be able to point, or generate or store a template for git to use via the GIT_TEMPLATE_DIR ENV.

Value

Rather than having to remember to manually run lefthook add every time you clone a repo you're looking to add functionality on, this would allow it to happen automatically.

Behavior and configuration changes

a command such as lefthook template would point to a directory that could be saved via
export GIT_TEMPLATE_DIR=$(lefthook template)
or maybe it could create one at $XDG_CONFIG_HOME/lefthook/template or something.

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