mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-19 00:28:03 +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
@ -23,7 +23,7 @@ func TestGetCommitFilesFromFilenames(t *testing.T) {
|
||||
input: "MM\x00Myfile\x00",
|
||||
output: []*models.CommitFile{
|
||||
{
|
||||
Name: "Myfile",
|
||||
Path: "Myfile",
|
||||
ChangeStatus: "MM",
|
||||
},
|
||||
},
|
||||
@ -33,11 +33,11 @@ func TestGetCommitFilesFromFilenames(t *testing.T) {
|
||||
input: "MM\x00Myfile\x00M \x00MyOtherFile\x00",
|
||||
output: []*models.CommitFile{
|
||||
{
|
||||
Name: "Myfile",
|
||||
Path: "Myfile",
|
||||
ChangeStatus: "MM",
|
||||
},
|
||||
{
|
||||
Name: "MyOtherFile",
|
||||
Path: "MyOtherFile",
|
||||
ChangeStatus: "M ",
|
||||
},
|
||||
},
|
||||
@ -47,15 +47,15 @@ func TestGetCommitFilesFromFilenames(t *testing.T) {
|
||||
input: "MM\x00Myfile\x00M \x00MyOtherFile\x00 M\x00YetAnother\x00",
|
||||
output: []*models.CommitFile{
|
||||
{
|
||||
Name: "Myfile",
|
||||
Path: "Myfile",
|
||||
ChangeStatus: "MM",
|
||||
},
|
||||
{
|
||||
Name: "MyOtherFile",
|
||||
Path: "MyOtherFile",
|
||||
ChangeStatus: "M ",
|
||||
},
|
||||
{
|
||||
Name: "YetAnother",
|
||||
Path: "YetAnother",
|
||||
ChangeStatus: " M",
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user