Hooks
Sam Bull
bazaar at sambull.org
Fri Jan 8 23:09:32 UTC 2021
On Fri, 2020-12-11 at 15:46 +0000, Jelmer Vernooij wrote:
> On Fri, Dec 11, 2020 at 03:32:46PM +0000, Sam Bull wrote:
> > I managed to do the pre-commit as you said, by adding it to the user config
> > directory. Is there a way to make it local to a particular repo? Is it
> > possible to have it part of the repo in such a way that it is automatically
> > used?
> > i.e. someone uses 'brz branch' and then when they commit it runs
> > automatically, with no extra configuration.
> There are ways around that - we could allow branch-specific plugins under
> .bzr/plugins in the branch, or something like that (so they're not cloned),
> but that's not implemented or planned at the moment.
Forgot to reply to this earlier. This would be very useful and is also how Git
does it (under .git/hooks/).
This could also easily allow the pre-commit framework (pre-commit.com) to
support breezy, which allows someone to just run 'pre-commit install' to enable
the hooks in the repo.
Thanks,
Sam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20210108/a761a391/attachment.sig>
More information about the bazaar
mailing list