aboutsummaryrefslogtreecommitdiff
path: root/t/t7502-status.sh
diff options
context:
space:
mode:
authorAnders Melchiorsen <mail@cup.kalibalik.dk>2008-09-08 00:05:03 +0200
committerJunio C Hamano <gitster@pobox.com>2008-09-07 16:12:20 -0700
commit4d6e4c4d34435c777bd844fe5ee0ec1ca06ffa4a (patch)
treecbc28c1670cbfb480cb151bed05025723cc7e63c /t/t7502-status.sh
parentbb914b14c9d2c1c630512291fe4ca276e69b6e00 (diff)
downloadgit-4d6e4c4d34435c777bd844fe5ee0ec1ca06ffa4a.tar.gz
git-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 't/t7502-status.sh')
-rwxr-xr-xt/t7502-status.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t7502-status.sh b/t/t7502-status.sh
index c8e4c2e7b..1905fb34c 100755
--- a/t/t7502-status.sh
+++ b/t/t7502-status.sh
@@ -46,6 +46,7 @@ cat > expect << \EOF
#
# 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
#
@@ -76,6 +77,7 @@ cat >expect <<EOF
#
# 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
#
@@ -104,6 +106,7 @@ cat >expect <<EOF
#
# 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
#
@@ -138,6 +141,7 @@ cat >expect <<EOF
#
# 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
#
@@ -174,6 +178,7 @@ cat > expect << \EOF
#
# 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
#
@@ -204,6 +209,7 @@ cat > expect << \EOF
#
# 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
#
@@ -267,6 +273,7 @@ cat >expect <<EOF
#
# 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
#
@@ -297,6 +304,7 @@ cat >expect <<EOF
#
# 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
#
@@ -326,6 +334,7 @@ cat >expect <<EOF
# 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
#
@@ -357,6 +366,7 @@ cat >expect <<EOF
#
# 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
#