Commit a935ebd
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>1 parent f4a5721 commit a935ebd
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2671 | 2671 | | |
2672 | 2672 | | |
2673 | 2673 | | |
2674 | | - | |
2675 | | - | |
2676 | 2674 | | |
2677 | 2675 | | |
2678 | 2676 | | |
| |||
2687 | 2685 | | |
2688 | 2686 | | |
2689 | 2687 | | |
2690 | | - | |
| 2688 | + | |
2691 | 2689 | | |
2692 | 2690 | | |
2693 | 2691 | | |
| |||
0 commit comments