diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-21 20:31:21 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | e6a1bd656620d2b786266b593b197721d669085a (patch) | |
tree | 1c515c9856ad0e4bcbf3a66ba09c09e22e0d7c0d /pkg/commands/git.go | |
parent | 609f3f4bfaa71e0d94eac845ee0f8f6ffcf2e624 (diff) |
generalise patch building stuff
Diffstat (limited to 'pkg/commands/git.go')
-rw-r--r-- | pkg/commands/git.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go index 243457c4f..ddb19f98a 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -1061,7 +1061,7 @@ func (c *GitCommand) GetFilesInRef(parent string, isStash bool, patchManager *pa for _, file := range strings.Split(strings.TrimRight(files, "\n"), "\n") { status := patch.UNSELECTED - if patchManager != nil && patchManager.CommitSha == parent { + if patchManager != nil && patchManager.Parent == parent { status = patchManager.GetFileStatus(file) } |