X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=wt-status.c;h=c01838c5ad5d04996478350c01a9c49231a467bc;hb=37475f97d1fbab0842c17b175263eeba6cd5e318;hp=9f4e0ba9c17120ca2903b30b95b6d8fbcc62cd9c;hpb=b9575e78e504d0fed4747bb2325aa09e2626b6e9;p=git.git diff --git a/wt-status.c b/wt-status.c index 9f4e0ba9c..c01838c5a 100644 --- a/wt-status.c +++ b/wt-status.c @@ -394,7 +394,7 @@ static void wt_status_collect_changes_worktree(struct wt_status *s) if (s->ignore_submodule_arg) { DIFF_OPT_SET(&rev.diffopt, OVERRIDE_SUBMODULE_CONFIG); handle_ignore_submodules_arg(&rev.diffopt, s->ignore_submodule_arg); - } + } rev.diffopt.format_callback = wt_status_collect_changed_cb; rev.diffopt.format_callback_data = s; init_pathspec(&rev.prune_data, s->pathspec); @@ -642,7 +642,7 @@ static void wt_status_print_other(struct wt_status *s, int i; struct strbuf buf = STRBUF_INIT; - if (!s->untracked.nr) + if (!l->nr) return; wt_status_print_other_header(s, what, how);