mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Rename Name to Path in File and CommitFile
Name was very confusing and misleading.
This commit is contained in:
@ -47,8 +47,8 @@ func fileShimFromModelFile(file *models.File) *File {
|
||||
}
|
||||
|
||||
return &File{
|
||||
Name: file.Name,
|
||||
PreviousName: file.PreviousName,
|
||||
Name: file.Path,
|
||||
PreviousName: file.PreviousPath,
|
||||
HasStagedChanges: file.HasStagedChanges,
|
||||
HasUnstagedChanges: file.HasUnstagedChanges,
|
||||
Tracked: file.Tracked,
|
||||
@ -141,7 +141,7 @@ func commitFileShimFromModelRemote(commitFile *models.CommitFile) *CommitFile {
|
||||
}
|
||||
|
||||
return &CommitFile{
|
||||
Name: commitFile.Name,
|
||||
Name: commitFile.Path,
|
||||
ChangeStatus: commitFile.ChangeStatus,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user