Skip to content

Feat: use git ls-tree instead of ls -a

What does this MR do and why?

Feat: use git ls-tree instead of ls -a

Pros:

  • This command respects .gitignore
  • This command automatically works on Windows

Cons:

  • Doesn't return untracked files

Related discussions:

Alternative solution

  1. Enhanced ls Command Security for GitIgnored Files (duo-workflow-executor!131 - closed)
  • Respects .gitignore
  • Doesn't work on Windows
  1. Implement a separate ListFiles command
  • Works on Windows
  • Requires additional implementation for .gitignore

Merge request reports

Loading