]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
refs: extract a function peel_entry()
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 22 Apr 2013 19:52:22 +0000 (21:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 May 2013 22:33:10 +0000 (15:33 -0700)
commit9a489f3c17d6c974b18c47cf406404ca2a721c87
tree2a498f1c399ef6a01e440b706e6075c8dfcda16b
parent2312a7932080f17c2847ec3ce5dddbc65c2e0b41
refs: extract a function peel_entry()

Peel the entry, and as a side effect store the peeled value in the
entry.  Use this function from two places in peel_ref(); a third
caller will be added soon.

Please note that this change can lead to ref_entries for unpacked refs
being peeled.  This has no practical benefit but is harmless.

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