rev-parse: add --show-superproject-working-tree
commitbf0231c66140be5194ac76a4a9f79e949c588293
authorStefan Beller <sbeller@google.com>
Wed, 8 Mar 2017 23:07:42 +0000 (8 15:07 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Mar 2017 23:52:03 +0000 (8 15:52 -0800)
tree737d073963f47b249c5dcc4b4f2928da25313608
parente0688e9b28f2c5ff711460ee8b62077be5df2360
rev-parse: add --show-superproject-working-tree

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. When no
superproject exists, the output will be empty.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rev-parse.txt
builtin/rev-parse.c
submodule.c
submodule.h
t/t1500-rev-parse.sh