summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bb914b1)
raw | patch | inline | side by side (parent: bb914b1)
author | Anders Melchiorsen <mail@cup.kalibalik.dk> | |
Sun, 7 Sep 2008 22:05:03 +0000 (00:05 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 7 Sep 2008 23:12:20 +0000 (16:12 -0700) |
This is a question that comes up a lot in #git.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7502-status.sh | patch | blob | history | |
wt-status.c | patch | blob | history |
diff --git a/t/t7502-status.sh b/t/t7502-status.sh
index c8e4c2e7b452c5e8db3958a85195c8cc5f6918f5..1905fb34cd222aa9443d28fd673b0cc9e02f3335 100755 (executable)
--- a/t/t7502-status.sh
+++ b/t/t7502-status.sh
#
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
+# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: dir1/modified
#
#
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
+# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: dir1/modified
#
#
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
+# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: dir1/modified
#
#
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
+# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: dir1/modified
#
#
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
+# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: modified
#
#
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
+# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: dir1/modified
#
#
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
+# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: dir1/modified
#
#
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
+# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: dir1/modified
#
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
+# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: dir1/modified
#
#
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
+# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: dir1/modified
#
diff --git a/wt-status.c b/wt-status.c
index 23702a25c45a354cb846c7e79c88a6cdd704b080..7cf890f2433bf622fe8c18faa0b0c89be60ef1db 100644 (file)
--- a/wt-status.c
+++ b/wt-status.c
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, "#");
}