diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2016-04-22 15:01:31 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-22 23:09:38 +0200 |
commit | 81eff27b0fb652f80a43bdf18c18cd9bc25840df (patch) | |
tree | 4876f5f723d4dc1e7ce059ba3c9a2b3d5e20dff6 /wt-status.h | |
parent | wt-status.c: split rebase detection out of wt_status_get_state() (diff) | |
download | git-81eff27b0fb652f80a43bdf18c18cd9bc25840df.tar.xz git-81eff27b0fb652f80a43bdf18c18cd9bc25840df.zip |
wt-status.c: make wt_status_check_rebase() work on any worktree
This is a preparation step for find_shared_symref() to detect if any
worktree is being rebased.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wt-status.h')
-rw-r--r-- | wt-status.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wt-status.h b/wt-status.h index b39835388c..c4ddcad27d 100644 --- a/wt-status.h +++ b/wt-status.h @@ -6,6 +6,8 @@ #include "color.h" #include "pathspec.h" +struct worktree; + enum color_wt_status { WT_STATUS_HEADER = 0, WT_STATUS_UPDATED, @@ -100,7 +102,8 @@ void wt_status_prepare(struct wt_status *s); void wt_status_print(struct wt_status *s); void wt_status_collect(struct wt_status *s); void wt_status_get_state(struct wt_status_state *state, int get_detached_from); -int wt_status_check_rebase(struct wt_status_state *state); +int wt_status_check_rebase(const struct worktree *wt, + struct wt_status_state *state); void wt_shortstatus_print(struct wt_status *s); void wt_porcelain_print(struct wt_status *s); |