diff options
Diffstat (limited to 'pkg/commands')
-rw-r--r-- | pkg/commands/patch/patch_manager.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/commands/patch/patch_manager.go b/pkg/commands/patch/patch_manager.go index ccb2a1081..3d6a076e8 100644 --- a/pkg/commands/patch/patch_manager.go +++ b/pkg/commands/patch/patch_manager.go @@ -222,7 +222,11 @@ func (p *PatchManager) RenderAggregatedPatchColored(plain bool) string { return result } -func (p *PatchManager) GetFileStatus(filename string) PatchStatus { +func (p *PatchManager) GetFileStatus(filename string, parent string) PatchStatus { + if parent != p.To { + return UNSELECTED + } + info, ok := p.fileInfoMap[filename] if !ok { return UNSELECTED |