summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2014-10-01 11:14:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-10-01 21:08:10 (GMT)
commit013870cd2cb1b0d6719a7a9123e126a62426520b (patch)
tree235000196a837c275d3e7d72d06cd3cf197bc9f3 /diff.c
parent697cc8efd944a32ca472337cd6640004c474b788 (diff)
downloadgit-013870cd2cb1b0d6719a7a9123e126a62426520b.zip
git-013870cd2cb1b0d6719a7a9123e126a62426520b.tar.gz
git-013870cd2cb1b0d6719a7a9123e126a62426520b.tar.bz2
fdopen_lock_file(): access a lockfile using stdio
Add a new function, fdopen_lock_file(), which returns a FILE pointer open to the lockfile. If a stream is open on a lock_file object, it is closed using fclose() on commit, rollback, or close_lock_file(). This change will allow callers to use stdio to write to a lockfile without having to muck around in the internal representation of the lock_file object (callers will be rewritten in upcoming commits). Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions