From 24f15742d025eaf8a29b28bf5b426a9af8a33527 Mon Sep 17 00:00:00 2001 From: Anthony HAMON Date: Sun, 9 Sep 2018 20:08:46 +0200 Subject: [PATCH] commands/git : rename variable --- pkg/commands/git.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/commands/git.go b/pkg/commands/git.go index fec0bc6ec..f7a80dc63 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -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",