mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
list-cvs-files.sh: Use git ls-files --recurse-submodules
Use --recurse-submodules option to git ls-files instead of implementing that own our own. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
38fd8e7d4d
commit
52db897dbb
1 changed files with 3 additions and 2 deletions
|
|
@ -45,8 +45,9 @@ list_dirents_cvs()
|
||||||
|
|
||||||
list_dirents_git()
|
list_dirents_git()
|
||||||
{
|
{
|
||||||
git ls-files $git_ls_files_opts $1
|
local opts="$git_ls_files_opts"
|
||||||
[ "$opt_no_submodules" = 1 ] || git submodule foreach "git ls-files $git_ls_files_opts | sed \"s|^|\$path/|\""
|
[ "$opt_no_submodules" = 1 ] || opts="$opts --recurse-submodules"
|
||||||
|
git ls-files $opts $1
|
||||||
}
|
}
|
||||||
|
|
||||||
list_dirents()
|
list_dirents()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue