jakewilliami / gl

A Git log command line utility
MIT License
1 stars 0 forks source link

Contruct the language summary using a custom summary struct #14

Closed jakewilliami closed 1 year ago

jakewilliami commented 1 year ago

It was a bit messy keeping track of the vector with a pair (optional language and prevalence percentage), and then figuring out the language colour while in the display function. I prefer constructing a LanguageSummary struct for each language, which contains information about prevalence, colour, and the language information itself.