Re: Template for commit messages
От | Stephen Frost |
---|---|
Тема | Re: Template for commit messages |
Дата | |
Msg-id | 20160128201617.GU3331@tamriel.snowman.net обсуждение исходный текст |
Ответ на | Re: Template for commit messages (Bruce Momjian <bruce@momjian.us>) |
Ответы |
Re: Template for commit messages
Re: Template for commit messages |
Список | pgsql-hackers |
* Bruce Momjian (bruce@momjian.us) wrote: > On Thu, Jan 28, 2016 at 10:40:09AM -0500, Stephen Frost wrote: > > * Joshua D. Drake (jd@commandprompt.com) wrote: > > > On 01/28/2016 06:57 AM, Robert Haas wrote: > > > > > > >>I'm on board with Bruce's template as being a checklist of points to be > > > >>sure to cover when composing a commit message. I'm not sure we need > > > >>fixed-format rules. > > > > > > > >Well, I think what people are asking for is precisely a fixed format, > > > >and I do think there is value in that. It's nice to capture the > > > >nuance, but the nuance is going to get flattened out anyway when the > > > >release notes are created. If we all agree to use a fixed format, > > > >then a bunch of work there that probably has to be done manually can > > > >be automated. However, if we all agree to use a fixed format except > > > >for you, we might as well just forget the whole thing, because the > > > >percentage of commits that are done by you is quite high. > > > > > > Yes, we are either all in or we may as well forgo this. > > > > I don't have a particular issue with it, but would like whatever > > template is decided upon to be included in our git repo and then we > > should be able to make it the template that's opened up when people go > > to commit pretty easily. > > OK, but keep in mind whatever script committers user should remove tags > that are empty after exiting the editor. I can provide the grep regex > in git somewhere too: > > egrep -v "^(Author|Reported-by|Bug|Reviewed-by|Tested-by|Backpatch-through): *$" If the template is there then, for my part at least, I wouldn't mind killing the empty lines. Having a decent script would work too, of course... but I have to admit that I've not tried having a script modify my commit messages right before they're committed and, well, it'd take a bit for me to be comfortable with it. No one wants garbled commit messages from a script that went awry. ;) Thanks! Stephen
В списке pgsql-hackers по дате отправления: