diff options
author | Anders Melchiorsen <mail@cup.kalibalik.dk> | 2008-09-08 00:05:03 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-09-07 16:12:20 -0700 |
commit | 4d6e4c4d34435c777bd844fe5ee0ec1ca06ffa4a (patch) | |
tree | cbc28c1670cbfb480cb151bed05025723cc7e63c /wt-status.c | |
parent | wt-status: Split header generation into three functions (diff) | |
download | tgif-4d6e4c4d34435c777bd844fe5ee0ec1ca06ffa4a.tar.xz |
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>
Diffstat (limited to 'wt-status.c')
-rw-r--r-- | wt-status.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 <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, "#"); } |