1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

allow toggling on/off file tree mode

This commit is contained in:
Jesse Duffield
2021-03-21 08:41:06 +11:00
parent c27cea6f30
commit da6fe01eca
14 changed files with 175 additions and 58 deletions

View File

@ -1056,7 +1056,7 @@ func TestGitCommandUnstageFile(t *testing.T) {
testName string
command func(string, ...string) *exec.Cmd
test func(error)
tracked bool
reset bool
}
scenarios := []scenario{
@ -1092,7 +1092,7 @@ func TestGitCommandUnstageFile(t *testing.T) {
t.Run(s.testName, func(t *testing.T) {
gitCmd := NewDummyGitCommand()
gitCmd.OSCommand.Command = s.command
s.test(gitCmd.UnStageFile("test.txt", s.tracked))
s.test(gitCmd.UnStageFile([]string{"test.txt"}, s.reset))
})
}
}