mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-09 09:22:48 +03:00
Rename Name to Path in File and CommitFile
Name was very confusing and misleading.
This commit is contained in:
@@ -125,7 +125,7 @@ func (self *FileTree) Get(index int) *FileNode {
|
||||
|
||||
func (self *FileTree) GetFile(path string) *models.File {
|
||||
for _, file := range self.getFiles() {
|
||||
if file.Name == path {
|
||||
if file.Path == path {
|
||||
return file
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user