summaryrefslogtreecommitdiffstats
path: root/pkg/gui/staging_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-08 14:10:01 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-09 14:09:53 +1100
commit364c5db19cd8bc50f5142bcced1596a180b1499e (patch)
treed627878af6ff9bd87d6e90190f179628161d29d8 /pkg/gui/staging_panel.go
parentc9a0cc6b30dca6ff6c520268c10afff4e99a68e9 (diff)
shorten name
Diffstat (limited to 'pkg/gui/staging_panel.go')
-rw-r--r--pkg/gui/staging_panel.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/staging_panel.go b/pkg/gui/staging_panel.go
index d14f36cd2..2afbf07cd 100644
--- a/pkg/gui/staging_panel.go
+++ b/pkg/gui/staging_panel.go
@@ -34,8 +34,8 @@ func (gui *Gui) refreshStagingPanel(forceSecondaryFocused bool, selectedLineIdx
}
// note for custom diffs, we'll need to send a flag here saying not to use the custom diff
- diff := gui.GitCommand.WorkingTree.WorktreeFileDiff(file, true, secondaryFocused, false)
- secondaryDiff := gui.GitCommand.WorkingTree.WorktreeFileDiff(file, true, !secondaryFocused, false)
+ diff := gui.Git.WorkingTree.WorktreeFileDiff(file, true, secondaryFocused, false)
+ secondaryDiff := gui.Git.WorkingTree.WorktreeFileDiff(file, true, !secondaryFocused, false)
// if we have e.g. a deleted file with nothing else to the diff will have only
// 4-5 lines in which case we'll swap panels
@@ -144,7 +144,7 @@ func (gui *Gui) applySelection(reverse bool, state *LblPanelState) error {
applyFlags = append(applyFlags, "cached")
}
gui.logAction(gui.Tr.Actions.ApplyPatch)
- err := gui.GitCommand.WorkingTree.ApplyPatch(patch, applyFlags...)
+ err := gui.Git.WorkingTree.ApplyPatch(patch, applyFlags...)
if err != nil {
return gui.surfaceError(err)
}