builtin/reset: add --recurse-submodules switch
commit35b96d1de8e795aeac8ec281e88e59f2778335e7
authorStefan Beller <sbeller@google.com>
Fri, 21 Apr 2017 17:39:53 +0000 (21 10:39 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Apr 2017 00:32:39 +0000 (23 17:32 -0700)
treefca77e97443fc8540633e1af89169fd210ee185f
parentf2d48994dc11ba367e92c38c8025c3354418145a
builtin/reset: add --recurse-submodules switch

git-reset is yet another working tree manipulator, which should
be taught about submodules.

When a user uses git-reset and requests to recurse into submodules,
this will reset the submodules to the object name as recorded in the
superproject, detaching the HEADs.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reset.c
t/t7112-reset-submodule.sh