X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=wt-status.c;h=c01838c5ad5d04996478350c01a9c49231a467bc;hb=36612e4daf8b5b5eaf16315aa13c66925f878cd6;hp=9f4e0ba9c17120ca2903b30b95b6d8fbcc62cd9c;hpb=2f3e3f573d635c26ce26ff61f8f6c97ce88da79c;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);