Re: [PATCH v2 01/44] Add support for ruby commands

2013-09-28 Thread Felipe Contreras
On Sat, Sep 28, 2013 at 11:30 PM, Ramkumar Ramachandra wrote: > Felipe Contreras wrote: >> +test_expect_success 'argument passing' ' >> + cat > script <<-"EOF" && >> + p($0) >> + p(ARGV) >> + EOF >> + git ruby script foo bar > actual && >> + cat > expected <<-EO

Re: [PATCH v2 01/44] Add support for ruby commands

2013-09-28 Thread Ramkumar Ramachandra
Felipe Contreras wrote: > +test_expect_success 'argument passing' ' > + cat > script <<-"EOF" && > + p($0) > + p(ARGV) > + EOF > + git ruby script foo bar > actual && > + cat > expected <<-EOF && > + "script" > + ["foo", "bar"] > + EOF > +

[PATCH v2 01/44] Add support for ruby commands

2013-09-28 Thread Felipe Contreras
Signed-off-by: Felipe Contreras --- Notes: With this support, third parties would be able to write scripts more easily and access libgit facilities. Also, it could help developers by allowing easier prototyping git ruby > actual < + +static inline VALUE sha1_to_str(co