summaryrefslogtreecommitdiffstats
path: root/pkg/gui/filetree
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-03-31 22:46:42 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-04-02 11:00:15 +1100
commit7364525bf5ae7b6b4ff8f0e4381e1014726219ad (patch)
tree1014f1c8e1dcd6aace604db674ac816a1252cae8 /pkg/gui/filetree
parent54910fdb76f8a699d2cfb96459b75b60485fd3f7 (diff)
do not show commit files of another parent as added to the patch
Diffstat (limited to 'pkg/gui/filetree')
-rw-r--r--pkg/gui/filetree/commit_file_change_manager.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/filetree/commit_file_change_manager.go b/pkg/gui/filetree/commit_file_change_manager.go
index 669235ef6..48754e5de 100644
--- a/pkg/gui/filetree/commit_file_change_manager.go
+++ b/pkg/gui/filetree/commit_file_change_manager.go
@@ -91,6 +91,6 @@ func (m *CommitFileChangeManager) ToggleCollapsed(path string) {
func (m *CommitFileChangeManager) Render(diffName string, patchManager *patch.PatchManager) []string {
return renderAux(m.tree, m.collapsedPaths, "", -1, func(n INode, depth int) string {
castN := n.(*CommitFileChangeNode)
- return presentation.GetCommitFileLine(castN.NameAtDepth(depth), diffName, castN.File, patchManager)
+ return presentation.GetCommitFileLine(castN.NameAtDepth(depth), diffName, castN.File, patchManager, m.parent)
})
}