wt-status.c: split rebase detection out of wt_status_get_state()
commitbcd522a1495146113f8e08e84a6717c04508e197
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 22 Apr 2016 13:01:30 +0000 (22 20:01 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Apr 2016 21:09:38 +0000 (22 14:09 -0700)
treea90472f818ba763a60d1c18791c50e20e64ebe44
parent2e641d5825673c7dca384bc12fcaf1681d731bb6
wt-status.c: split rebase detection out of wt_status_get_state()

worktree.c:find_shared_symref() later needs to know if a branch is being
rebased, and only rebase, no cherry-pick, do detached branch... Split
this code so it can be used independently from other in-progress tests.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
wt-status.c
wt-status.h