1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-17 00:18:05 +02:00

move patch stuff into its own package

This commit is contained in:
Jesse Duffield
2020-08-15 11:18:40 +10:00
parent 291a8e4de0
commit 826d1660c9
13 changed files with 188 additions and 176 deletions

View File

@ -3,6 +3,7 @@ package presentation
import (
"github.com/fatih/color"
"github.com/jesseduffield/lazygit/pkg/commands"
"github.com/jesseduffield/lazygit/pkg/commands/patch"
"github.com/jesseduffield/lazygit/pkg/theme"
)
@ -26,11 +27,11 @@ func getCommitFileDisplayStrings(f *commands.CommitFile, diffed bool) []string {
var colour *color.Color
switch f.Status {
case commands.UNSELECTED:
case patch.UNSELECTED:
colour = defaultColor
case commands.WHOLE:
case patch.WHOLE:
colour = green
case commands.PART:
case patch.PART:
colour = yellow
}
if diffed {