chiark / gitweb /
Allow pick to import multiple patches
[stgit] / t / t0002-status.sh
index d0c31b250926482e113c32b59a9d01cc0cf95b05..43e1ca08e4deba373408c9914cd04f85c545b3eb 100755 (executable)
@@ -127,6 +127,7 @@ test_expect_success 'Status of file' '
 '
 
 cat > expected.txt <<EOF
+C foo/bar
 EOF
 test_expect_success 'Status of dir' '
     stg status foo > output.txt &&
@@ -158,4 +159,16 @@ test_expect_success 'Status after deleting a file' '
     diff -u expected.txt output.txt
 '
 
+cat > expected.txt <<EOF
+D foo/bar
+EOF
+test_expect_success 'Status of disappeared newborn' '
+    stg refresh &&
+    touch foo/bar &&
+    stg add foo/bar &&
+    rm foo/bar &&
+    stg status > output.txt &&
+    diff -u expected.txt output.txt
+'
+
 test_done