summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-03-13 11:03:34 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-03-13 11:03:34 +1100
commit03de51747e04853dced1ff48ad6552dc518471e5 (patch)
tree35b9323d43aa1afec1e75bdde46d33b9df5a45c0
parent3d698cd7c1a2e58ae9263addf57906ad9b349ecc (diff)
remove redundant addition
-rw-r--r--pkg/commands/loading_commit_files.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/loading_commit_files.go b/pkg/commands/loading_commit_files.go
index ad209fdd3..ebadc3096 100644
--- a/pkg/commands/loading_commit_files.go
+++ b/pkg/commands/loading_commit_files.go
@@ -30,7 +30,7 @@ func (c *GitCommand) getCommitFilesFromFilenames(filenames string, parent string
n := len(lines)
for i := 0; i < n-1; i += 2 {
// typical result looks like 'A my_file' meaning my_file was added
- changeStatus := lines[i+0]
+ changeStatus := lines[i]
name := lines[i+1]
status := patch.UNSELECTED
if patchManager != nil && patchManager.To == parent {