Skip to content

Commit 1282988

Browse files
peffgitster
authored andcommitted
status: fix bug with missing --ignore files
Commit 1b908b6 (wt-status: rename and restructure status-print-untracked, 2010-04-10) converted the wt_status_print_untracked function into wt_status_print_other, taking a string_list of either untracked or ignored items to print. However, the "nothing to show" early return still checked the wt_status->untracked list instead of the passed-in list. That meant that if we had ignored items to show, but no untracked items, we would erroneously exit early and fail to show the ignored items. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2381e39 commit 1282988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wt-status.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ static void wt_status_print_other(struct wt_status *s,
551551
int i;
552552
struct strbuf buf = STRBUF_INIT;
553553

554-
if (!s->untracked.nr)
554+
if (!l->nr)
555555
return;
556556

557557
wt_status_print_other_header(s, what, how);

0 commit comments

Comments
 (0)