diff --git a/man/eza.1.md b/man/eza.1.md index 4fe11ba8e..abf758953 100644 --- a/man/eza.1.md +++ b/man/eza.1.md @@ -197,16 +197,16 @@ These options are available when running with `--long` (`-l`): `--git` [if eza was built with git support] : List each file’s Git status, if tracked. +This adds a two-character column indicating the staged and unstaged statuses respectively. The status character can be ‘`-`’ for not modified, ‘`M`’ for a modified file, ‘`N`’ for a new file, ‘`D`’ for deleted, ‘`R`’ for renamed, ‘`T`’ for type-change, ‘`I`’ for ignored, and ‘`U`’ for conflicted. :Directories will be shown to have the status of their contents, which is how ‘deleted’ is possible if a directory contains a file that has a certain status, it will be shown to have that status. `--git-repos` [if eza was built with git support] : List each directory’s Git status, if tracked. +Symbols shown are `|`= clean, `+`= dirty, and `~`= for unknown. `--git-repos-no-status` [if eza was built with git support] : List if a directory is a Git repository, but not its status. +All Git repository directories will be shown as (themed) `-` without status indicated. -This adds a two-character column indicating the staged and unstaged statuses respectively. The status character can be ‘`-`’ for not modified, ‘`M`’ for a modified file, ‘`N`’ for a new file, ‘`D`’ for deleted, ‘`R`’ for renamed, ‘`T`’ for type-change, ‘`I`’ for ignored, and ‘`U`’ for conflicted. - -Directories will be shown to have the status of their contents, which is how ‘deleted’ is possible: if a directory contains a file that has a certain status, it will be shown to have that status. `--no-git` : Don't show Git status (always overrides `--git`, `--git-repos`, `--git-repos-no-status`) diff --git a/src/output/render/git.rs b/src/output/render/git.rs index d479be3bc..34befa6bf 100644 --- a/src/output/render/git.rs +++ b/src/output/render/git.rs @@ -31,8 +31,8 @@ impl f::SubdirGitRepo { let s = match self.status { f::SubdirGitRepoStatus::NoRepo => style.paint("- "), f::SubdirGitRepoStatus::GitClean => style.fg(Color::Green).paint("| "), - f::SubdirGitRepoStatus::GitDirty => style.bold().fg(Color::Red).paint("- "), - f::SubdirGitRepoStatus::GitUnknown => style.paint("- "), + f::SubdirGitRepoStatus::GitDirty => style.bold().fg(Color::Red).paint("+ "), + f::SubdirGitRepoStatus::GitUnknown => style.fg(Color::Green).bold().paint("~ "), }; TextCell {