head: parse some head steps.

N/A

Signed-off-by: yudatun <yudatun@gmail.com>