Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
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
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: