mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
scm.sh: Ls-files: Add --recurse-submodules for git
Make scm.sh ls-files list all files belonging to submodules, too. The use case is to have list-text-files return them. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
531798ed0b
commit
531e0eab19
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ cmd_ls_files()
|
|||
local opts="$git_ls_files_opts"
|
||||
git --version | grep -q "version *1" && opt_no_submodules=1
|
||||
[ "$opt_no_submodules" = 1 ] || opts="$opts --recurse-submodules"
|
||||
git ls-files $opts $1
|
||||
git ls-files --recurse-submodules $opts $1
|
||||
}
|
||||
|
||||
list_dirents()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue