summaryrefslogtreecommitdiffstats
path: root/pkg/gui/patch_building_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-21 20:10:25 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commit609f3f4bfaa71e0d94eac845ee0f8f6ffcf2e624 (patch)
tree4ac76ae49d46252b81fa4ae6c0cc5afbdcec188c /pkg/gui/patch_building_panel.go
parent9b42cd22144c4bf590513d7ad9dd37e922268889 (diff)
rename Sha to parent now that we're also considering stash entries
Diffstat (limited to 'pkg/gui/patch_building_panel.go')
-rw-r--r--pkg/gui/patch_building_panel.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/patch_building_panel.go b/pkg/gui/patch_building_panel.go
index 0df46fe8f..76589505a 100644
--- a/pkg/gui/patch_building_panel.go
+++ b/pkg/gui/patch_building_panel.go
@@ -22,7 +22,7 @@ func (gui *Gui) refreshPatchBuildingPanel(selectedLineIdx int) error {
return nil
}
- diff, err := gui.GitCommand.ShowCommitFile(commitFile.Sha, commitFile.Name, true)
+ diff, err := gui.GitCommand.ShowCommitFile(commitFile.Parent, commitFile.Name, true)
if err != nil {
return err
}