Re: [PATCH 2/7] submodule add: label submodules if asked to

2016-05-11 Thread Stefan Beller
>> +cat >expect <<-EOF >> +labelA >> +labelB >> +EOF >> + >> +test_expect_success 'submodule add records multiple labels' ' > > The existing tests in this file may be littered with this bad > construct, but please do not add more example of running things > outside of test_expect_{success,failure}

Re: [PATCH 2/7] submodule add: label submodules if asked to

2016-05-10 Thread Junio C Hamano
Stefan Beller writes: > diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh > index 814ee63..0adc4e4 100755 > --- a/t/t7400-submodule-basic.sh > +++ b/t/t7400-submodule-basic.sh > @@ -1056,6 +1056,7 @@ test_expect_success 'submodule with UTF-8 name' ' > ' > > test_expect_succ

[PATCH 2/7] submodule add: label submodules if asked to

2016-05-10 Thread Stefan Beller
When adding new submodules, you can specify the labels the submodule belongs to by giving one or more --label arguments. This will record each label in the .gitmodules file as a value of the key "submodule.$NAME.label". Signed-off-by: Stefan Beller --- Documentation/git-submodule.txt | 4 +++-