]> git.ipfire.org Git - thirdparty/git.git/commit
commit_packed_refs(): use a staging file separate from the lockfile
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 23 Jun 2017 07:01:40 +0000 (09:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Jun 2017 20:27:33 +0000 (13:27 -0700)
commit42dfa7ecef22191b004862fb56074b408c94fc97
tree630bab8e57dc61be971f934ccbe846e3c09fc896
parent3478983b517bd62cf2a5c9523815e5e5318a9477
commit_packed_refs(): use a staging file separate from the lockfile

We will want to be able to hold the lockfile for `packed-refs` even
after we have activated the new values. So use a separate tempfile,
`packed-refs.new`, as a place to stage the new contents of the
`packed-refs` file. For now this is all done within
`commit_packed_refs()`, but that will change shortly.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/packed-backend.c