better interface for ApplyPatch function

This commit is contained in:
Jesse Duffield 2019-11-05 18:44:46 +11:00
parent db8c398fa3
commit 72fe770974
4 changed files with 16 additions and 17 deletions

View file

@ -1733,7 +1733,7 @@ func TestGitCommandApplyPatch(t *testing.T) {
t.Run(s.testName, func(t *testing.T) {
gitCmd := NewDummyGitCommand()
gitCmd.OSCommand.command = s.command
s.test(gitCmd.ApplyPatch("test", false, true, ""))
s.test(gitCmd.ApplyPatch("test", "cached"))
})
}
}