summaryrefslogtreecommitdiffstats
path: root/pkg/commands/loading_files.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-03-20 12:07:11 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-03-20 12:46:27 +1100
commitad1468f66f8af1724a99bc4c1a653ac71c6cadcb (patch)
tree1ec69ad08f0f07a6d9f881be034ee3400df4cc13 /pkg/commands/loading_files.go
parent058bcddc53cff6360583cd575fe64da76b53f94b (diff)
better handling of discarding files
Diffstat (limited to 'pkg/commands/loading_files.go')
-rw-r--r--pkg/commands/loading_files.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/commands/loading_files.go b/pkg/commands/loading_files.go
index 2bf77a865..f2a285f58 100644
--- a/pkg/commands/loading_files.go
+++ b/pkg/commands/loading_files.go
@@ -50,6 +50,7 @@ func (c *GitCommand) GetStatusFiles(opts GetStatusFileOptions) []*models.File {
HasUnstagedChanges: unstagedChange != " ",
Tracked: !untracked,
Deleted: unstagedChange == "D" || stagedChange == "D",
+ Added: unstagedChange == "A" || untracked,
HasMergeConflicts: hasMergeConflicts,
HasInlineMergeConflicts: hasInlineMergeConflicts,
Type: c.OSCommand.FileType(filename),