pack_if_possible_fn(): use ref_type() instead of is_per_worktree_ref()
authorMichael Haggerty <mhagger@alum.mit.edu>
Tue, 10 Nov 2015 11:42:34 +0000 (12:42 +0100)
committerJeff King <peff@peff.net>
Fri, 20 Nov 2015 09:52:01 +0000 (04:52 -0500)
commita935ebd4a7df505da819371ef10add6ad7bd77d7
tree34b2b1b33ff022ea51667b29024675aa635fadea
parentf4a5721ccb73efe33d345190f38058b45eaadca8
pack_if_possible_fn(): use ref_type() instead of is_per_worktree_ref()

is_per_worktree_ref() will soon be made private, so use the public
interface, ref_type(), in its place. And now that we're using
ref_type(), we can make it clear that we won't pack pseudorefs. This was
the case before, but due to the not-so-obvious reason that this function
is applied to references via the loose reference cache, which only
includes references that live inside "refs/".

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Jeff King <peff@peff.net>
refs.c