summaryrefslogtreecommitdiff
path: root/t/README
diff options
context:
space:
mode:
authorLibravatar Johannes Sixt <j6t@kdbg.org>2013-06-07 22:53:27 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-06-07 15:01:16 -0700
commit9ce415d972a04df4bfceaad0fab8eaea9a66997e (patch)
tree84abd364d506aa9c4983f109b9babc1680a3674b /t/README
parentt3010: modernize style (diff)
downloadtgif-9ce415d972a04df4bfceaad0fab8eaea9a66997e.tar.xz
tests: introduce test_ln_s_add
Add a new function that creates a symbolic link and adds it to the index to be used in cases where a symbolic link is not required on the file system. We will use it to remove many SYMLINKS prerequisites from test cases. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 e669bb31b9..bbe25c31b4 100644
--- a/t/README
+++ b/t/README
@@ -592,6 +592,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
-------------