settings: use fsync / fdatasync on Linux to sync contents
commit51efb057619b7a7bd304a893cb202ad52d1cf965
authorDavid Aguilar <davvid@gmail.com>
Fri, 29 Mar 2024 10:09:26 +0000 (29 03:09 -0700)
committerDavid Aguilar <davvid@gmail.com>
Fri, 29 Mar 2024 10:09:26 +0000 (29 03:09 -0700)
treed38513164cdac3c0d5e5de0b5ce8b34f2b4cf550
parent69e32f0d42d86e2ff62a2341edc460d2c044ef3f
settings: use fsync / fdatasync on Linux to sync contents

Avoid an OS-level sync by using fsync and fdatasync when they are available.

Related-to: #1305
Signed-off-by: David Aguilar <davvid@gmail.com>
cola/core.py
cola/settings.py
docs/git-cola.rst