commit: Try reflinks for local commits by default
authorColin Walters <walters@verbum.org>
Sat, 2 Dec 2023 20:48:12 +0000 (15:48 -0500)
committerColin Walters <walters@verbum.org>
Tue, 5 Dec 2023 01:45:08 +0000 (20:45 -0500)
commitc3dff62e1cc0692d033465c784b561f36a722969
tree6490fd5c6bf8f37f1b13cd664be7d9109585d4b4
parent09e32d615f664a6895e97e5144266b75e19f5cdd
commit: Try reflinks for local commits by default

I think we originally used to do this, but at some point in a
code refactoring, this optimization got lost.

It's a quite important optimization for the case of writing content
generated by an external system into an ostree repository.
src/libostree/ostree-repo-commit.c
tests/kolainst/destructive/itest-label-selinux.sh