| 182 | } |
| 183 | |
| 184 | func formatFileStatus(file *models.File, restColor style.TextStyle) string { |
| 185 | firstChar := file.ShortStatus[0:1] |
| 186 | firstCharCl := style.FgGreen |
| 187 | switch firstChar { |
| 188 | case "?": |
| 189 | firstCharCl = theme.UnstagedChangesColor |
| 190 | case " ": |
| 191 | firstCharCl = restColor |
| 192 | } |
| 193 | |
| 194 | secondChar := file.ShortStatus[1:2] |
| 195 | secondCharCl := theme.UnstagedChangesColor |
| 196 | if secondChar == " " { |
| 197 | secondCharCl = restColor |
| 198 | } |
| 199 | |
| 200 | return firstCharCl.Sprint(firstChar) + secondCharCl.Sprint(secondChar) |
| 201 | } |
| 202 | |
| 203 | func formatLineChanges(linesAdded, linesDeleted int) string { |
| 204 | output := "" |