mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
fix: fix diff of renamed files
This commit is contained in:
committed by
Jesse Duffield
parent
954d1a8147
commit
53257db99d
@ -27,6 +27,7 @@ type IFile interface {
|
||||
GetHasStagedChanges() bool
|
||||
GetIsTracked() bool
|
||||
GetPath() string
|
||||
GetPreviousPath() string
|
||||
}
|
||||
|
||||
func (f *File) IsRename() bool {
|
||||
@ -85,3 +86,7 @@ func (f *File) GetPath() string {
|
||||
// TODO: remove concept of name; just use path
|
||||
return f.Name
|
||||
}
|
||||
|
||||
func (f *File) GetPreviousPath() string {
|
||||
return f.PreviousName
|
||||
}
|
||||
|
Reference in New Issue
Block a user