repo: Factor out _ostree_repo_auto_transaction_new()
authorSimon McVittie <smcv@collabora.com>
Sat, 30 Apr 2022 11:20:11 +0000 (12:20 +0100)
committerSimon McVittie <smcv@collabora.com>
Sat, 30 Apr 2022 11:20:11 +0000 (12:20 +0100)
commit540e60c3e3ace66dd4e6cf825488fc918260a642
tree214617aa90da40955a00242e6b348dacdbde2dee
parent9cdd98125063734ad0c016d51f51a0c8e724645a
repo: Factor out _ostree_repo_auto_transaction_new()

This will allow the direct allocation in
ostree_repo_prepare_transaction() to be replaced with a call to this
function, avoiding breaking encapsulation.

Signed-off-by: Simon McVittie <smcv@collabora.com>
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c