mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
introduce Ref interface
This commit is contained in:
committed by
Jesse Duffield
parent
30be50b641
commit
4835fc00b8
@ -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() {
|
||||
|
Reference in New Issue
Block a user