fsck: move fsck_head_link() to get_default_heads() to avoid some globals
commita8c754d4e2ced5439c23e8cf4636c24749ea1ddc
authorElijah Newren <newren@gmail.com>
Sun, 21 Oct 2018 08:08:57 +0000 (21 10:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Oct 2018 04:32:50 +0000 (22 13:32 +0900)
tree5578eac15ae0f12529f87e06b4aec41a93d0ad46
parentab3e1f78ae8ecb3371cf85a36d73fd341fad3884
fsck: move fsck_head_link() to get_default_heads() to avoid some globals

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>
builtin/fsck.c