summaryrefslogtreecommitdiff
path: root/patch_test.go
diff options
context:
space:
mode:
authorJesse Ezell <[email protected]>2014-03-21 22:16:26 -0700
committerJesse Ezell <[email protected]>2014-03-21 22:51:38 -0700
commit155f641683f09ec1a9511f42867ae3f278a6800b (patch)
tree75720dd634dd7b045a47c296bc401b292965e863 /patch_test.go
parentf85c38ce22391ef8a932673dabf82219527ab433 (diff)
don't expose 3 different diff foreach methods. use structures instead of pointers to structures for diff detail. add patch error code handling. trim excess data from diff structures.
Diffstat (limited to 'patch_test.go')
-rw-r--r--patch_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/patch_test.go b/patch_test.go
index f816068..569eac2 100644
--- a/patch_test.go
+++ b/patch_test.go
@@ -20,7 +20,7 @@ func TestPatch(t *testing.T) {
newTree, err := repo.LookupTree(newTreeId)
checkFatal(t, err)
- diff, err := repo.DiffTreeToTree(originalTree, newTree)
+ diff, err := repo.DiffTreeToTree(originalTree, newTree, nil)
checkFatal(t, err)
patch, err := diff.Patch(0)