author | Michael Haggerty <mhagger@alum.mit.edu> | |
Mon, 17 Oct 2011 02:38:10 +0000 (04:38 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 17 Oct 2011 04:12:04 +0000 (21:12 -0700) | ||
commit | 8bf90dc9bdf3fb1d2b1b2eb46293a719a3638acb | |
tree | d7d6ae334deccfba25ee04c1625eaf862d2e7431 | tree | snapshot |
parent | 760c4512e54e524e3a19905c10a65209fda20c12 | commit | diff |
write_ref_sha1(): only invalidate the loose ref cache
Since write_ref_sha1() can only write loose refs and cannot write
symbolic refs, there is no need for it to invalidate the packed ref
cache.
Suggested by: Martin Fick <mfick@codeaurora.org>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Since write_ref_sha1() can only write loose refs and cannot write
symbolic refs, there is no need for it to invalidate the packed ref
cache.
Suggested by: Martin Fick <mfick@codeaurora.org>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c | diff | blob | history |