Re: [PATCH 04/11] tests: introduce test_ln_s and test_ln_s_add

2013-06-01 Thread Ramkumar Ramachandra
Johannes Sixt wrote: > # - Use test_ln_s instead of "ln -s x y" when y has been added as a > # symbolic link entry earlier. Ah, sorry I skipped over the comments. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordom

Re: [PATCH 04/11] tests: introduce test_ln_s and test_ln_s_add

2013-06-01 Thread Johannes Sixt
Am 01.06.2013 13:11, schrieb Ramkumar Ramachandra: > 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_

Re: [PATCH 04/11] tests: introduce test_ln_s and test_ln_s_add

2013-06-01 Thread Ramkumar Ramachandra
Johannes Sixt wrote: > +test_ln_s_add () { > + if test_have_prereq SYMLINKS > + then > + ln -s "$1" "$2" && > + git update-index --add "$2" > + else > + printf '%s' "$1" >"$2" && > + ln_s_obj=$(git hash-object -w "$2") && > +

[PATCH 04/11] tests: introduce test_ln_s and test_ln_s_add

2013-06-01 Thread Johannes Sixt
Add new functions that create symbolic links and add them to the index to be used in cases where a symbolic link is not required on the file system. We will use them to remove many SYMLINKS prerequisites from test cases. Signed-off-by: Johannes Sixt --- t/README| 17 +