1
0
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:
Ryooooooga
2022-04-05 23:35:41 +09:00
committed by Jesse Duffield
parent 954d1a8147
commit 53257db99d
3 changed files with 17 additions and 1 deletions

View File

@ -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
}