summaryrefslogtreecommitdiff
path: root/t/README
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-06-20 23:02:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-06-20 23:02:18 (GMT)
commitc0266ed2759fa1838384c37faa6d7264edaaf04b (patch)
treefef5a3e38e75495e8a91881e9c8a1b35c9e536c1 /t/README
parent6aeb74ec89272be317f66869fde7c5144d528d5e (diff)
parent70836a6f8b71a945f074fc796c4241c2183b83a2 (diff)
downloadgit-c0266ed2759fa1838384c37faa6d7264edaaf04b.zip
git-c0266ed2759fa1838384c37faa6d7264edaaf04b.tar.gz
git-c0266ed2759fa1838384c37faa6d7264edaaf04b.tar.bz2
Merge branch 'js/test-ln-s-add'
Many tests that check the behaviour of symbolic links stored in the index or the tree objects do not have to be skipped on a filesystem that lack symbolic link support. * js/test-ln-s-add: t4011: remove SYMLINKS prerequisite t6035: use test_ln_s_add to remove SYMLINKS prerequisite t3509, t4023, t4114: use test_ln_s_add to remove SYMLINKS prerequisite t3100: use test_ln_s_add to remove SYMLINKS prerequisite t3030: use test_ln_s_add to remove SYMLINKS prerequisite t0000: use test_ln_s_add to remove SYMLINKS prerequisite tests: use test_ln_s_add to remove SYMLINKS prerequisite (trivial cases) tests: introduce test_ln_s_add t3010: modernize style test-chmtime: Fix exit code on Windows
Diffstat (limited to 't/README')
-rw-r--r--t/README14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/README b/t/README
index 35b3c5c..ec52468 100644
--- a/t/README
+++ b/t/README
@@ -595,6 +595,20 @@ library for your script to use.
test_cmp expected actual
'
+ - test_ln_s_add <path1> <path2>
+
+ This function helps systems whose filesystem does not support symbolic
+ links. Use it to add a symbolic link entry to the index when it is not
+ important that the file system entry is a symbolic link, i.e., instead
+ of the sequence
+
+ ln -s foo bar &&
+ git add bar
+
+ Sometimes it is possible to split a test in a part that does not need
+ the symbolic link in the file system and a part that does; then only
+ the latter part need be protected by a SYMLINKS prerequisite (see below).
+
Prerequisites
-------------