status: show more info than "currently not on any branch"
[gitweb.git] / wt-status.h
index 236b41fd345ca3dd95ce450ac3fb3fca2b725e47..5cb7df91571c79bbd809943287ddbe1eb76d98ed 100644 (file)
@@ -79,11 +79,16 @@ struct wt_status_state {
        int rebase_interactive_in_progress;
        int cherry_pick_in_progress;
        int bisect_in_progress;
+       char *branch;
+       char *onto;
+       char *detached_from;
+       unsigned char detached_sha1[20];
 };
 
 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);
 
 void wt_shortstatus_print(struct wt_status *s);
 void wt_porcelain_print(struct wt_status *s);