From: Junio C Hamano Date: Tue, 22 Mar 2016 22:28:03 GMT Subject: Re: [RFC_PATCHv4 1/7] git submodule: teach `add` to label submodules Message-ID: In-Reply-To: <1458612372-10966-2-git-send-email-sbeller@google.com> Stefan Beller writes: > When adding new submodules, you can specify the > label(s) 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". Can you define the semantics of "label" with a bit more detail in the doc? For example, it is unclear from the description if a submodule can have multiple labels (I can read the patch, and I am not asking you to explain it to _me_). It also is unclear if a user can tweak the set of labels a submodule has locally, iow, without modifying .gitmodules that would end up affecting other people. I think the expected use of "label" is to have the whole project to share which labels a given submodule should have (i.e. it is not like branches you can freely create in your repository, but more like tags that give all project participant shared understanding of stable anchoring points), and I am guessing that there is no need for "repository local labels" for that reason, but we'd need to see that kind of design decisions spelled out in the documentation to avoid end-user confusion. Thanks. > Signed-off-by: Stefan Beller > --- > Documentation/git-submodule.txt | 5 ++++- > git-submodule.sh | 14 +++++++++++++- > t/t7400-submodule-basic.sh | 32 ++++++++++++++++++++++++++++++++ > 3 files changed, 49 insertions(+), 2 deletions(-) > > diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt > index 13adebf..c0744eb 100644 > --- a/Documentation/git-submodule.txt > +++ b/Documentation/git-submodule.txt > @@ -9,7 +9,7 @@ git-submodule - Initialize, update or inspect submodules > SYNOPSIS > -------- > [verse] > -'git submodule' [--quiet] add [-b ] [-f|--force] [--name ] > +'git submodule' [--quiet] add [-b ] [-f|--force] [-l|--label