fsck: move fsck_head_link() to get_default_heads() to avoid some globals
authorElijah Newren <newren@gmail.com>
Sun, 21 Oct 2018 08:08:57 +0000 (10:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Oct 2018 04:32:50 +0000 (13:32 +0900)
This will make it easier to check the HEAD of other worktrees from fsck.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found