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:
commit
799abea0c4
9 changed files with 1379 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue