diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-29 18:36:54 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-29 20:48:49 +1000 |
commit | 630e4469898cb630c93cd309156c7c90bf2acd75 (patch) | |
tree | 553d9ac059b8d75190821db9c053d8c12f4f02e6 /pkg/commands/git_test.go | |
parent | 44248d9ab0818dfca6a5c1f5ee2ad5b0d45d4998 (diff) |
move commits model into models package
Diffstat (limited to 'pkg/commands/git_test.go')
-rw-r--r-- | pkg/commands/git_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/commands/git_test.go b/pkg/commands/git_test.go index ab519e9ba..6e7df61aa 100644 --- a/pkg/commands/git_test.go +++ b/pkg/commands/git_test.go @@ -1716,7 +1716,7 @@ func TestGitCommandDiscardOldFileChanges(t *testing.T) { type scenario struct { testName string getLocalGitConfig func(string) (string, error) - commits []*Commit + commits []*models.Commit commitIndex int fileName string command func(string, ...string) *exec.Cmd @@ -1729,7 +1729,7 @@ func TestGitCommandDiscardOldFileChanges(t *testing.T) { func(string) (string, error) { return "", nil }, - []*Commit{}, + []*models.Commit{}, 0, "test999.txt", nil, @@ -1742,7 +1742,7 @@ func TestGitCommandDiscardOldFileChanges(t *testing.T) { func(string) (string, error) { return "true", nil }, - []*Commit{{Name: "commit", Sha: "123456"}}, + []*models.Commit{{Name: "commit", Sha: "123456"}}, 0, "test999.txt", nil, @@ -1755,7 +1755,7 @@ func TestGitCommandDiscardOldFileChanges(t *testing.T) { func(string) (string, error) { return "", nil }, - []*Commit{ + []*models.Commit{ {Name: "commit", Sha: "123456"}, {Name: "commit2", Sha: "abcdef"}, }, |