wt-status: Teach how to discard changes in the working directory
This is a question that comes up a lot in #git. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
bb914b14c9
commit
4d6e4c4d34
@ -79,6 +79,7 @@ static void wt_status_print_dirty_header(struct wt_status *s,
|
||||
color_fprintf_ln(s->fp, c, "# (use \"git add <file>...\" to update what will be committed)");
|
||||
else
|
||||
color_fprintf_ln(s->fp, c, "# (use \"git add/rm <file>...\" to update what will be committed)");
|
||||
color_fprintf_ln(s->fp, c, "# (use \"git checkout -- <file>...\" to discard changes in working directory)");
|
||||
color_fprintf_ln(s->fp, c, "#");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user