File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ fn for_filename(filename: &str) -> Option<Color> {
3636 // NOTE These should be in alphabetical order and ignoring any leading `.` for
3737 // easier code review.
3838 let color = match filename {
39- ".git" => Red . into ( ) ,
39+ ".git" | ".gitattributes" | ".gitignore" | ".gitmodules" | ".git-blame-ignore-revs" => {
40+ Red . into ( )
41+ }
4042 ".github" => Black . into ( ) ,
4143 ".vscode" => Blue . into ( ) ,
4244 _ => return None ,
Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ fn for_filename(filename: &str) -> Option<&'static str> {
3636 let icon = match filename {
3737 "CONTRIBUTING.md" => shared:: DOC ,
3838 ".editorconfig" => "\u{e652} " , //
39- ".git" => "\u{e702} " , //
39+ ".git" | ".gitattributes" | ".gitignore" | ".gitmodules" | ".git-blame-ignore-revs" => {
40+ "\u{e702} "
41+ } //
4042 ".github" => "\u{e709} " , //
4143 "LICENCE" | "LICENSE" | "licence" | "license" => shared:: LICENSE ,
4244 "package-lock.json" | "pnpm-lock.yaml" => shared:: LOCK ,
You can’t perform that action at this time.
0 commit comments