8000 Make packbuilder interruptible using progress callback by roberth · Pull Request #6874 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

Make packbuilder interruptible using progress callback #6874

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 8000 send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

roberth
Copy link
Contributor
@roberth roberth commented Sep 2, 2024

Specifically, forward errors from packbuilder->progress_cb

This allows the callback to gracefully terminate long-running operations when the application is interrupted.

Interruption could be ^C in the terminal, but this could be any other condition or event, as this is up to the callback function to implement.

My specific motivation for this is to improve the responsiveness of the Nix package manager to interrupts in the terminal, in the context of NixOS/nix#11330, which proposes to write packfiles instead of loose objects for performance.

Specifically, forward errors from packbuilder->progress_cb

This allows the callback to gracefully terminate long-running
operations when the application is interrupted.

Interruption could be ^C in the terminal, but this could be any
other condition or event, as this is up to the callback function
to implement.
@ethomson
Copy link
Member

Helpful fix, thanks!

@ethomson ethomson merged commit 75e670d into libgit2:main Sep 25, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0