x/build/maintner: GerritCL.Subject doesn't include entire subject if it's split across multiple lines #30101
According to git behavior, the subject of a commit message is separated from the body a blank line. Most commit message subjects are short and fit in one line (hopefully under 50 characters). In some cases, they end up being split into multiple lines.
As one example, CL 8204 has a subject that is split across two lines.
Git reports the subject using both lines:
fmt.Println(cl.Subject()) // Output: // goimports: create a var to permit custom implementations of flag parsing and
Here's a complete list of CLs in the Go maintner corpus where the current
The text was updated successfully, but these errors were encountered:
I could've been more convincing and brief by referencing git documentation, rather than trying to demonstrate behavior. It's documented at https://git-scm.com/docs/git-commit#_discussion:
This is a followup to CL 161222, where I forgot to handle the case where a commit message has a multi-line subject and no body. Updates golang/go#30101 Change-Id: I01222e8cf783bc3b0631a332cf379717aa85cebc Reviewed-on: https://go-review.googlesource.com/c/161797 Reviewed-by: Andrew Bonventre <email@example.com>