From b78bde3d74b1617d5b635723552aaec0583eb054 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Fri, 4 Dec 2020 19:54:26 -0800 Subject: Make all Options objects consistent This change makes all Options objects have child Option fields as values (instead of pointers) to mirror the libgit2 interface. It also names them Options instead of Opts to match the current libgit2 nomenclature and removes the Version fields. --- revert_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'revert_test.go') diff --git a/revert_test.go b/revert_test.go index fcf8e43..1104866 100644 --- a/revert_test.go +++ b/revert_test.go @@ -60,11 +60,11 @@ func TestRevertCommit(t *testing.T) { revertOptions, err := DefaultRevertOptions() checkFatal(t, err) - index, err := repo.RevertCommit(commit, commit, 0, &revertOptions.MergeOpts) + index, err := repo.RevertCommit(commit, commit, 0, &revertOptions.MergeOptions) checkFatal(t, err) defer index.Free() - err = repo.CheckoutIndex(index, &revertOptions.CheckoutOpts) + err = repo.CheckoutIndex(index, &revertOptions.CheckoutOptions) checkFatal(t, err) actualReadmeContents := readReadme(t, repo) -- cgit v1.2.3