RelNotes 2.18: clarify where directory rename detection applies
[gitweb.git] / wt-status.h
index 3f84d5c29ff270596a894e2d42843b03d7aa37c5..1673d146fa2f1e15eabccd1c6b12d0e74b5f0870 100644 (file)
@@ -5,6 +5,7 @@
 #include "string-list.h"
 #include "color.h"
 #include "pathspec.h"
+#include "remote.h"
 
 struct worktree;
 
@@ -87,7 +88,10 @@ struct wt_status {
        int show_branch;
        int show_stash;
        int hints;
-
+       enum ahead_behind_flags ahead_behind_flags;
+       int detect_rename;
+       int rename_score;
+       int rename_limit;
        enum wt_status_format status_format;
        unsigned char sha1_commit[GIT_MAX_RAWSZ]; /* when not Initial */
 
@@ -116,9 +120,9 @@ struct wt_status_state {
        char *branch;
        char *onto;
        char *detached_from;
-       unsigned char detached_sha1[20];
-       unsigned char revert_head_sha1[20];
-       unsigned char cherry_pick_head_sha1[20];
+       struct object_id detached_oid;
+       struct object_id revert_head_oid;
+       struct object_id cherry_pick_head_oid;
 };
 
 size_t wt_status_locate_end(const char *s, size_t len);