Bläddra i källkod

Add "main" as an alternative name for default branch, in accordance with
recent trend in the git ecosystem (see - https://github.com/github/renaming)

modified: src/output/render/git.rs

alpn 4 år sedan
förälder
incheckning
5a35944592
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      src/output/render/git.rs

+ 1 - 0
src/output/render/git.rs

@@ -21,6 +21,7 @@ impl f::SubdirGitRepo {
         let style = Style::new();
         let branch_style = match self.branch.as_deref(){
             Some("master") => style.fg(Color::Green),
+            Some("main") => style.fg(Color::Green),
             Some(_) => style.fg(Color::Fixed(208)),
             _ => style,
         };