Skip to content

Pre/post command hooks #779

@abhinav

Description

@abhinav

git-spice should support hooks that it runs before/after certain operations
like post-restack, post-submit, etc.
This would allow power users to build custom workflows on top of git-spice
operations.

Refs #414 (comment)

This issue only tracks the high-level design of the hooks system,
not a comprehensive list of hooks.
One supported hook will be enough to resolve this issue.

Open questions:

  • Where do hooks go? .git/hooks/spice/ or .git/spice/hooks/?
  • Do we want to support in-repo hooks?
  • How (if at all) should we support the core.hooksPath configuration option?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions