Optional --abbrevInstead of showing the full 40-byte hexadecimal object lines, shows the shortest prefix that is at least
Optional --cachedShows cached files in the output.
Optional --debugAfter each line that describes a file, adds more data about its cache entry. This is intended to show as much information as possible for manual inspection; the exact format may change at any time.
Optional --deduplicateWhen only filenames are shown, suppresses duplicates that may come from having multiple stages during a merge, or giving --deleted and --modified option at the same time.
Optional --deletedShows deleted files in the output.
Optional --directoryIf a whole directory is classified as "other", shows just its name (with a trailing slash) and not its whole contents.
Optional --eolShows
Optional --error-If any
Optional --excludeSkips untracked files matching the pattern.
Optional --exclude-Adds the standard Git exclusions.
Optional --formatInterpolates %(fieldname) from the result being shown.
Optional --full-Forces paths to be output relative to the project top directory.
Optional --ignoredShows only ignored files in the output.
Optional --killedShows files on the filesystem that need to be removed due to file/directory conflicts for checkout-index to succeed.
Optional --modifiedShows modified files in the output.
Optional --no-Does not list empty directories. Has no effect without --directory.
Optional --othersShows other (i.e. untracked) files in the output.
Optional --recurse-Recursively calls ls-files on each active submodule in the repository.
Optional --sparseIf the index is sparse, shows the sparse directories without expanding to the contained files.
Optional --stageShows staged contents' mode bits, object name and stage number in the output.
Optional --unmergedShows unmerged files in the output (forces --stage).
Optional -zUses NUL, \0, line termination on output and does not quote filenames.
Forward slash, /, path separators are returned regardless of platform.
LsFilesOptions defines the supported options for the Git ls-files command.