mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
Rename Name to Path in File and CommitFile
Name was very confusing and misleading.
This commit is contained in:
@ -119,7 +119,7 @@ func (self *CommitFileTree) CollapsedPaths() *CollapsedPaths {
|
||||
|
||||
func (self *CommitFileTree) GetFile(path string) *models.CommitFile {
|
||||
for _, file := range self.getFiles() {
|
||||
if file.Name == path {
|
||||
if file.Path == path {
|
||||
return file
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user