Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notifications for changed refs #751

Closed
jelmer opened this issue Mar 21, 2020 · 1 comment
Closed

notifications for changed refs #751

jelmer opened this issue Mar 21, 2020 · 1 comment

Comments

@jelmer
Copy link
Owner

jelmer commented Mar 21, 2020

(see also jonashaag/klaus#248)

It would be useful if Dulwich provided a way to listen to changes in refs, for long-running processes. The optimal implementation for this would be to use inotify to watch for changes to .git/packed-refs, .git/HEAD and all files under .git/refs.

I'm not sure whether it makes sense to provide a non-inotify replacement, especially since that may lead to terrible surprises for the performance for some repositories.

@jelmer
Copy link
Owner Author

jelmer commented Jun 28, 2020

so this is a little bit tricky with pyinotify because it needs a loop to run. asyncio makes this slightly easier, so perhaps it would be reasonable to require that with inotify.

@jelmer jelmer closed this as completed in 0131716 Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant