mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-27 00:51:18 +02:00
Rename Name to Path in File and CommitFile
Name was very confusing and misleading.
This commit is contained in:
pkg
commands
git_commands
commit_file_loader.gocommit_file_loader_test.gofile_loader.gofile_loader_test.goworking_tree.goworking_tree_test.go
models
gui
controllers
filetree
build_tree.gobuild_tree_test.gocommit_file_tree.gofile_node.gofile_node_test.gofile_tree.gofile_tree_test.gofile_tree_view_model.go
presentation
services
custom_commands
@ -2,18 +2,17 @@ package models
|
||||
|
||||
// CommitFile : A git commit file
|
||||
type CommitFile struct {
|
||||
// TODO: rename this to Path
|
||||
Name string
|
||||
Path string
|
||||
|
||||
ChangeStatus string // e.g. 'A' for added or 'M' for modified. This is based on the result from git diff --name-status
|
||||
}
|
||||
|
||||
func (f *CommitFile) ID() string {
|
||||
return f.Name
|
||||
return f.Path
|
||||
}
|
||||
|
||||
func (f *CommitFile) Description() string {
|
||||
return f.Name
|
||||
return f.Path
|
||||
}
|
||||
|
||||
func (f *CommitFile) Added() bool {
|
||||
@ -25,5 +24,5 @@ func (f *CommitFile) Deleted() bool {
|
||||
}
|
||||
|
||||
func (f *CommitFile) GetPath() string {
|
||||
return f.Name
|
||||
return f.Path
|
||||
}
|
||||
|
Reference in New Issue
Block a user