summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorSebastian Henke <s.henke@henke-informatik.de>2019-10-11 12:44:09 +0200
committerSebastian Henke <s.henke@henke-informatik.de>2019-10-17 13:25:36 +0200
commit47531f47334d8b14f6f3ad30a780565c657e4698 (patch)
tree1c3f754e03c9b2f68e01094c7482d74f9289fe1a /src/commit.c
parentef5a3851fdece852569ffebf3537883223744a7a (diff)
downloadlibgit2-47531f47334d8b14f6f3ad30a780565c657e4698.tar.gz
refs: unlock unmodified refs on transaction commit
Refs which are locked in a transaction without an altered target, still should to be unlocked on `git_transaction_commit`. `git_transaction_free` also unlocks refs but the moment of calling of `git_transaction_free` cannot be controlled in all situations. Some binding libs call `git_transaction_free` on garbage collection or not at all if the application exits before and don't provide public access to `git_transaction_free`. It is better to release locks as soon as possible.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions