summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2018-01-21 20:55:46 +0000
committerCarlos Martín Nieto <cmn@dwim.me>2018-01-21 21:09:52 +0000
commit8b66a8c6ec6dedd2a80d1c9d35eafebf49f5cead (patch)
treea9504277bdde528c3157fd614a814a9d3916de68 /script
parent820370fe846167faaeabb2238cae900489af6bb8 (diff)
downloadlibgit2-cmn/atexit-skeleton.tar.gz
atexit: create skeletoncmn/atexit-skeleton
This provides a skeleton for registering rollback functions in case the caller wants to centralise their error handling in an `atexit(3)`-like manner. Subsystems within libgit2 will register themselves when they e.g. create lockfiles. If the caller detects an error (potentially unrelated to the libgit2 operation) and wants to back out, they could call `git_atexit()` in order to remove lockfiles which the library is holding.
Diffstat (limited to 'script')
0 files changed, 0 insertions, 0 deletions