fork of go-gitdiff with jj support
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix minor documentation issues

authored by

Billy Keyes and committed by
GitHub
546a186b 5609b2d4

+4 -5
+4 -5
gitdiff/patch_header.go
··· 57 57 58 58 // ParsePatchIdentity parses a patch identity string. A valid string contains a 59 59 // non-empty name followed by an email address in angle brackets. Like Git, 60 - // ParsePatchIdentity does not require that the email addresses is valid or 60 + // ParsePatchIdentity does not require that the email address is valid or 61 61 // properly formatted, only that it is non-empty. The name must not contain a 62 62 // left angle bracket, '<', and the email address must not contain a right 63 63 // angle bracket, '>'. ··· 162 162 // used by git format-patch. 163 163 // 164 164 // ParsePatchHeader makes no assumptions about the format of the patch title or 165 - // message other than removing leading and trailing whitespace on each line and 166 - // condensing blank lines. In particular, it does not remove the extra content 167 - // that git format-patch adds to make emailed patches friendlier, like subject 168 - // prefixes or commit stats. 165 + // message other than trimming whitespace and condensing blank lines. In 166 + // particular, it does not remove the extra content that git format-patch adds 167 + // to make emailed patches friendlier, like subject prefixes or commit stats. 169 168 func ParsePatchHeader(s string) (*PatchHeader, error) { 170 169 r := bufio.NewReader(strings.NewReader(s)) 171 170