Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ffaad10 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Simplify glob messages with many excluded files" into main

parents 83036351 976890e5
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -792,8 +792,10 @@ func checkGlobs(ctx Context, finalOutFile string) error {
						changedGlobNameMutex.Lock()
						defer changedGlobNameMutex.Unlock()
						changedGlobName = result.Pattern
						if len(result.Excludes) > 0 {
							changedGlobName += " (excluding " + strings.Join(result.Excludes, ", ") + ")"
						if len(result.Excludes) > 2 {
							changedGlobName += fmt.Sprintf(" (excluding %d other patterns)", len(result.Excludes))
						} else if len(result.Excludes) > 0 {
							changedGlobName += " (excluding " + strings.Join(result.Excludes, " and ") + ")"
						}
					}
				}