summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-07-09 20:17:00 +0200
committerVicent Marti <tanoku@gmail.com>2010-08-12 18:49:04 +0200
commitbd0a51c0dd117eed5879441f9d14a3112ff27cc7 (patch)
treed9063f9d6f4b0bb69fc4a02f9e7fa4b9e92e7143 /src/commit.c
parent3315782cb4f2b683c66a53c93aa81de501c5a4ab (diff)
downloadlibgit2-bd0a51c0dd117eed5879441f9d14a3112ff27cc7.tar.gz
Add support for atomic file locking
The struct 'git_filelock' represents an atomically-locked file, git-style. Locked files can be modified atomically through the new file lock interface: int git_filelock_init(git_filelock *lock, const char *path); int git_filelock_lock(git_filelock *lock, int append); void git_filelock_unlock(git_filelock *lock); int git_filelock_commit(git_filelock *lock); int git_filelock_write(git_filelock *lock, const char *buffer, size_t length); Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions