X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=wt-status.c;h=03b5ec4488cb25bca2f9d96493e874d7c12d3636;hb=4340a813d007b592534de664d152d66417dbe809;hp=eeb16915c2ef2f62379e0feb08cf9468ec3acf81;hpb=f26a0012262106e0c7e92d8d07f00611112d3a8d;p=git.git diff --git a/wt-status.c b/wt-status.c index eeb16915c..03b5ec448 100644 --- a/wt-status.c +++ b/wt-status.c @@ -53,6 +53,7 @@ void wt_status_prepare(struct wt_status *s) s->branch = head ? xstrdup(head) : NULL; s->reference = "HEAD"; s->fp = stdout; + s->index_file = get_index_file(); } static void wt_status_print_cached_header(struct wt_status *s) @@ -198,7 +199,7 @@ static void wt_status_print_changed_cb(struct diff_queue_struct *q, static void wt_read_cache(struct wt_status *s) { discard_cache(); - read_cache(); + read_cache_from(s->index_file); } static void wt_status_print_initial(struct wt_status *s)