Re: [PATCHv3] rev-parse: add --show-superproject-working-tree

2017-03-08 Thread Junio C Hamano
Stefan Beller writes: > +--show-superproject-working-tree > + Show the absolute path of the top-level directory of > + the superproject. A superproject is a repository that records > + this repository as a submodule. The top-level directory of the superproject's working tree? Descri

[PATCHv3] rev-parse: add --show-superproject-working-tree

2017-03-08 Thread Stefan Beller
In some situations it is useful to know if the given repository is a submodule of another repository. Add the flag --show-superproject-working-tree to git-rev-parse to make it easy to find out if there is a superproject. Signed-off-by: Stefan Beller --- > Looks more or less right but invoke "ls-