mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-04 23:37:41 +02:00
commands/git : rename variable
This commit is contained in:
parent
6076a75643
commit
24f15742d0
@ -135,12 +135,12 @@ func (c *GitCommand) GetStatusFiles() []File {
|
|||||||
unstagedChange := statusString[1:2]
|
unstagedChange := statusString[1:2]
|
||||||
filename := c.OSCommand.Unquote(statusString[3:])
|
filename := c.OSCommand.Unquote(statusString[3:])
|
||||||
_, untracked := map[string]bool{"??": true, "A ": true, "AM": true}[change]
|
_, untracked := map[string]bool{"??": true, "A ": true, "AM": true}[change]
|
||||||
_, hasUnstagedChanges := map[string]bool{" ": true, "U": true, "?": true}[stagedChange]
|
_, hasNoStagedChanges := map[string]bool{" ": true, "U": true, "?": true}[stagedChange]
|
||||||
|
|
||||||
file := File{
|
file := File{
|
||||||
Name: filename,
|
Name: filename,
|
||||||
DisplayString: statusString,
|
DisplayString: statusString,
|
||||||
HasStagedChanges: !hasUnstagedChanges,
|
HasStagedChanges: !hasNoStagedChanges,
|
||||||
HasUnstagedChanges: unstagedChange != " ",
|
HasUnstagedChanges: unstagedChange != " ",
|
||||||
Tracked: !untracked,
|
Tracked: !untracked,
|
||||||
Deleted: unstagedChange == "D" || stagedChange == "D",
|
Deleted: unstagedChange == "D" || stagedChange == "D",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user