class Git::Commands::LsFiles

Implements the ‘git ls-files` command.

This command shows information about files in the index and the working tree. It is used to list tracked, untracked, ignored, and staged files.

@example List staged files with stage info

ls_files = Git::Commands::LsFiles.new(execution_context)
ls_files.call('.', stage: true)

@example List untracked files not ignored

ls_files = Git::Commands::LsFiles.new(execution_context)
ls_files.call(others: true, exclude_standard: true)

@example List ignored files

ls_files = Git::Commands::LsFiles.new(execution_context)
ls_files.call(others: true, ignored: true, exclude_standard: true)

@example List untracked files in a specific directory

ls_files = Git::Commands::LsFiles.new(execution_context)
ls_files.call(others: true, exclude_standard: true, chdir: '/path/to/workdir')

@note ‘arguments` block audited against git-scm.com/docs/git-ls-files/2.53.0

@see git-scm.com/docs/git-ls-files git-ls-files documentation

@see Git::Commands

@api private