mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
rename Status to PatchStatus
This commit is contained in:
@ -6,8 +6,8 @@ type CommitFile struct {
|
|||||||
Parent string
|
Parent string
|
||||||
Name string
|
Name string
|
||||||
|
|
||||||
// Status tells us whether the file has been wholly or partially added to a patch. We might want to pull this logic up into the gui package and make it a map like we do with cherry picked commits
|
// PatchStatus tells us whether the file has been wholly or partially added to a patch. We might want to pull this logic up into the gui package and make it a map like we do with cherry picked commits
|
||||||
Status int // one of 'WHOLE' 'PART' 'NONE'
|
PatchStatus int // one of 'WHOLE' 'PART' 'NONE'
|
||||||
|
|
||||||
ChangeStatus string // e.g. 'A' for added or 'M' for modified. This is based on the result from git diff --name-status
|
ChangeStatus string // e.g. 'A' for added or 'M' for modified. This is based on the result from git diff --name-status
|
||||||
}
|
}
|
||||||
|
@ -1080,7 +1080,7 @@ func (c *GitCommand) GetCommitFilesFromFilenames(filenames string, parent string
|
|||||||
Parent: parent,
|
Parent: parent,
|
||||||
Name: name,
|
Name: name,
|
||||||
ChangeStatus: changeStatus,
|
ChangeStatus: changeStatus,
|
||||||
Status: status,
|
PatchStatus: status,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ func getCommitFileDisplayStrings(f *commands.CommitFile, diffed bool) []string {
|
|||||||
diffTerminalColor := color.New(theme.DiffTerminalColor)
|
diffTerminalColor := color.New(theme.DiffTerminalColor)
|
||||||
|
|
||||||
var colour *color.Color
|
var colour *color.Color
|
||||||
switch f.Status {
|
switch f.PatchStatus {
|
||||||
case patch.UNSELECTED:
|
case patch.UNSELECTED:
|
||||||
colour = defaultColor
|
colour = defaultColor
|
||||||
case patch.WHOLE:
|
case patch.WHOLE:
|
||||||
|
Reference in New Issue
Block a user