diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-03-07 10:16:30 +0100 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2023-03-07 13:40:07 +0100 |
commit | 4bd1322941af599f4cf9e406cc72adf7a5bc6ff4 (patch) | |
tree | dad041eeac62c1dc6002d745cf7c2d6194d5b0c7 /pkg/gui | |
parent | 45cf993982f9b56afedd5fd6585c6d6fcd858181 (diff) |
Rename WillBeAppliedReverse to Reverse
This is the only "reverse"-related option that is left, so use a less clumsy
name for it.
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/controllers/staging_controller.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/controllers/staging_controller.go b/pkg/gui/controllers/staging_controller.go index 2fef137d0..78c271640 100644 --- a/pkg/gui/controllers/staging_controller.go +++ b/pkg/gui/controllers/staging_controller.go @@ -182,7 +182,7 @@ func (self *StagingController) applySelection(reverse bool) error { firstLineIdx, lastLineIdx := state.SelectedRange() patch := patch.ModifiedPatchForRange(self.c.Log, path, state.GetDiff(), firstLineIdx, lastLineIdx, - patch.PatchOptions{WillBeAppliedReverse: reverse, KeepOriginalHeader: false}) + patch.PatchOptions{Reverse: reverse, KeepOriginalHeader: false}) if patch == "" { return nil @@ -232,7 +232,7 @@ func (self *StagingController) editHunk() error { hunk := state.CurrentHunk() patchText := patch.ModifiedPatchForRange( self.c.Log, path, state.GetDiff(), hunk.FirstLineIdx, hunk.LastLineIdx(), - patch.PatchOptions{WillBeAppliedReverse: self.staged, KeepOriginalHeader: false}, + patch.PatchOptions{Reverse: self.staged, KeepOriginalHeader: false}, ) patchFilepath, err := self.git.WorkingTree.SaveTemporaryPatch(patchText) if err != nil { |