[PATCH 16/23] misc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 t/t1520-test.sh |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/t/t1520-test.sh b/t/t1520-test.sh
index 1d0776d..78f31fe 100755
--- a/t/t1520-test.sh
+++ b/t/t1520-test.sh
@@ -416,4 +416,30 @@ test_expect_success 'same' \
       --not-same C D 
 '
 
+test_expect_success 'clean' \
+'
+    git test \
+       --not-staged \
+       --not-unstaged \
+       --not-detached \
+       --not-untracked \
+       --not-rebasing \
+       --not-conflicted 
+'
+
+test_expect_success 'existence' \
+'
+    git test \
+       --commit-exists M \
+       --not-commit-exists N \
+       --ref-exists refs/tags/M \
+       --not-ref-exists refs/tags/N \
+       --branch-exists master \
+       --not-branch-exists N \
+       --tag-exists D \
+       --not-tag-exists N \
+       --not-tag-exists master \
+       --not-branch-exists A 
+ '
+
 test_done
-- 
1.7.5.rc1.23.g7f622

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]