ls-files: optionally recurse into submodules
commite77aa336f116e8ff8a72d034494b3a476b78c3ee
authorBrandon Williams <bmwill@google.com>
Fri, 7 Oct 2016 18:18:49 +0000 (7 11:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Oct 2016 19:14:58 +0000 (10 12:14 -0700)
tree08c35ebef1f6cee05dea8e0525b4e4cfd33fcf2e
parent74866d75793559e8b351a17100679f83b96972ca
ls-files: optionally recurse into submodules

Allow ls-files to recognize submodules in order to retrieve a list of
files from a repository's submodules.  This is done by forking off a
process to recursively call ls-files on all submodules. Use top-level
--super-prefix option to pass a path to the submodule which it can
use to prepend to output or pathspec matching logic.

Signed-off-by: Brandon Williams <bmwill@google.com>
Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-ls-files.txt
builtin/ls-files.c
git.c
t/t3007-ls-files-recurse-submodules.sh [new file with mode: 0755]