diff options
author | Ryooooooga <eial5q265e5@gmail.com> | 2022-03-26 22:18:08 +0900 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-04-02 17:04:42 +1100 |
commit | 4835fc00b861c6117c1d4d6873a05d808e54b4cf (patch) | |
tree | 6f521eb16da8c9310cab776d6b57e84de32d4752 /pkg/gui/modes/diffing | |
parent | 30be50b641dbe594d7968e79536028f22beee1b0 (diff) |
introduce Ref interface
Diffstat (limited to 'pkg/gui/modes/diffing')
-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() { |