diff options
Diffstat (limited to 'pkg/gui/modes')
-rw-r--r-- | pkg/gui/modes/diffing/diffing.go | 3 |
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() { |