1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-05 12:21:48 +02:00

Merge pull request #11330 from NixOS/packfile

libgit2, GitRepo: Write (thin) packfiles
This commit is contained in:
Robert Hensing 2024-09-16 14:42:59 +02:00 committed by GitHub
commit 799abea0c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 1379 additions and 5 deletions

View file

@ -84,6 +84,12 @@ static inline bool getInterrupted()
return unix::_isInterrupted;
}
/**
* Throw `Interrupted` exception if the process has been interrupted.
*
* Call this in long-running loops and between slow operations to terminate
* them as needed.
*/
void inline checkInterrupt()
{
using namespace unix;