We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34ea173 commit c2035adCopy full SHA for c2035ad
gitdiff/apply.go
@@ -98,6 +98,12 @@ const (
98
applyFile
99
)
100
101
+// Apply is a convenience function that creates an Applier for src with default
102
+// settings and applies the changes in f, writing the result to dst.
103
+func Apply(dst io.Writer, src io.ReaderAt, f *File) error {
104
+ return NewApplier(src).ApplyFile(dst, f)
105
+}
106
+
107
// Applier applies changes described in fragments to source data. If changes
108
// are described in multiple fragments, those fragments must be applied in
109
// order, usually by calling ApplyFile.
0 commit comments