fix(tui): don't show HEAD in log

This commit is contained in:
Paul Campbell 2024-08-31 17:54:43 +01:00
parent 02609fdc11
commit d2048d8a34

View file

@ -66,6 +66,7 @@ impl From<LogLine> for Line<'_> {
let mut branches = BRANCHES
.captures_iter(&caps["branches"])
.map(|captures| captures["branch"].to_owned())
.filter(|branch| branch != "HEAD")
.collect::<Vec<_>>();
if branches.is_empty() {
// line without branches