We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 981bc4b commit 13e8639Copy full SHA for 13e8639
gitdiff/parser.go
@@ -12,6 +12,10 @@ import (
12
// Parse parses a patch with changes to one or more files. Any content before
13
// the first file is returned as the second value. If an error occurs while
14
// parsing, it returns all files parsed before the error.
15
+//
16
+// Parse expects to receive a single patch. If the input may contain multiple
17
+// patches (for example, if it is an mbox file), callers should split it into
18
+// individual patches and call Parse on each one.
19
func Parse(r io.Reader) ([]*File, string, error) {
20
p := newParser(r)
21
0 commit comments