1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-02 23:27:32 +02:00

commands/git : rename variable

This commit is contained in:
Anthony HAMON 2018-09-09 20:08:46 +02:00
parent 6076a75643
commit 24f15742d0

View File

@ -135,12 +135,12 @@ func (c *GitCommand) GetStatusFiles() []File {
unstagedChange := statusString[1:2]
filename := c.OSCommand.Unquote(statusString[3:])
_, 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{
Name: filename,
DisplayString: statusString,
HasStagedChanges: !hasUnstagedChanges,
HasStagedChanges: !hasNoStagedChanges,
HasUnstagedChanges: unstagedChange != " ",
Tracked: !untracked,
Deleted: unstagedChange == "D" || stagedChange == "D",