]> git.ipfire.org Git - thirdparty/git.git/blobdiff - wt-status.h
t3200: test --set-upstream-to with bogus refs
[thirdparty/git.git] / wt-status.h
index 74208c06fd08b49041489c869d3c5f16804493da..be7a016173487780fdd4d37e24b4a47fcb766454 100644 (file)
@@ -80,13 +80,16 @@ struct wt_status_state {
        int rebase_interactive_in_progress;
        int cherry_pick_in_progress;
        int bisect_in_progress;
-       const char *branch;
-       const char *onto;
+       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);