diff options
| author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-05-22 16:17:49 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2017-05-23 14:29:55 +0900 |
| commit | 28ed9830b1dc65df37bdb3c9b8ef743f1f266262 (patch) | |
| tree | df1ea10365753071d455725a73d7c46ca8060d34 /builtin/commit.c | |
| parent | should_pack_ref(): new function, extracted from `files_pack_refs()` (diff) | |
| download | git-28ed9830b1dc65df37bdb3c9b8ef743f1f266262.tar.gz git-28ed9830b1dc65df37bdb3c9b8ef743f1f266262.zip | |
get_packed_ref_cache(): assume "packed-refs" won't change while locked
If we've got the "packed-refs" file locked, then it can't change;
there's no need to keep calling `stat_validity_check()` on it.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
