From 4d6e4c4d34435c777bd844fe5ee0ec1ca06ffa4a Mon Sep 17 00:00:00 2001 From: Anders Melchiorsen Date: Mon, 8 Sep 2008 00:05:03 +0200 Subject: 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 --- wt-status.c | 1 + 1 file changed, 1 insertion(+) (limited to 'wt-status.c') diff --git a/wt-status.c b/wt-status.c index 23702a25c4..7cf890f243 100644 --- a/wt-status.c +++ b/wt-status.c @@ -79,6 +79,7 @@ static void wt_status_print_dirty_header(struct wt_status *s, color_fprintf_ln(s->fp, c, "# (use \"git add ...\" to update what will be committed)"); else color_fprintf_ln(s->fp, c, "# (use \"git add/rm ...\" to update what will be committed)"); + color_fprintf_ln(s->fp, c, "# (use \"git checkout -- ...\" to discard changes in working directory)"); color_fprintf_ln(s->fp, c, "#"); } -- cgit v1.2.3