summaryrefslogtreecommitdiffstats
path: root/pkg/gui/modes
diff options
context:
space:
mode:
authorRyooooooga <eial5q265e5@gmail.com>2022-03-26 22:18:08 +0900
committerJesse Duffield <jessedduffield@gmail.com>2022-04-02 17:04:42 +1100
commit4835fc00b861c6117c1d4d6873a05d808e54b4cf (patch)
tree6f521eb16da8c9310cab776d6b57e84de32d4752 /pkg/gui/modes
parent30be50b641dbe594d7968e79536028f22beee1b0 (diff)
introduce Ref interface
Diffstat (limited to 'pkg/gui/modes')
-rw-r--r--pkg/gui/modes/diffing/diffing.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/gui/modes/diffing/diffing.go b/pkg/gui/modes/diffing/diffing.go
index b27662b72..aa13bd1c1 100644
--- a/pkg/gui/modes/diffing/diffing.go
+++ b/pkg/gui/modes/diffing/diffing.go
@@ -16,8 +16,7 @@ func (self *Diffing) Active() bool {
// GetFromAndReverseArgsForDiff tells us the from and reverse args to be used in a diff command.
// If we're not in diff mode we'll end up with the equivalent of a `git show` i.e `git diff blah^..blah`.
-func (self *Diffing) GetFromAndReverseArgsForDiff(to string) (string, bool) {
- from := to + "^"
+func (self *Diffing) GetFromAndReverseArgsForDiff(from string) (string, bool) {
reverse := false
if self.Active() {