Re: [PATCH 04/11] tests: introduce test_ln_s and test_ln_s_add
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Jun 1, 2013, 15:06 UTC
- Message-ID
- <51AA0DD9.9030704@kdbg.org>
- In-Reply-To
- <CALkWK0nN2V3Cwi3n+DV7Bcme7jE=B+COFioqPFfHQgxGTWEtiA@mail.gmail.com>
Am 01.06.2013 13:11, schrieb Ramkumar Ramachandra:
Show 12 quoted lines
> Johannes Sixt wrote:
>> +test_ln_s () {
>> + if test_have_prereq SYMLINKS
>> + then
>> + ln -s "$1" "$2"
>> + else
>> + printf '%s' "$1" >"$2"
>> + fi
>> +}
>
> What is this? We can't test_ln_s something and then 'git add' it, so
> what purpose does this serve?Sure, we can 'git add' it:
# - Use test_ln_s instead of "ln -s x y" when y has been added as a # symbolic link entry earlier.
-- Hannes