Live data from Hacker News

Git commit message styleguide

github.com

21–30 of 39 posts

Re: Git commit message styleguide

#21
post #20

> Use Valid MarkDown format in Message Body. I like to keep Markdown away from my repos. After a while people get clever with their Markdown and it makes reading commit logs using command-line tools increasingly difficult. It also encourages writing things into commit logs that would be better suited for documentation. Edit: apparently it's not a Github specific thing.

I don't believe GitHub renders commit messages as Markdown.

Re: Git commit message styleguide

#22
I really like the emoji approach. I think the dev job got a bit nicer since basically every dev tool from shell to editor can display them.

But :checkered_flag: for Windows? I think this is problematic. To me it looks more like an icon that suggests "finishing" something.

That's the problem with icons, their meaning breaks down rather fast if you can't create specific ones.

Re: Git commit message styleguide

#26
post #15

Oh, please don't... I've seen CI systems broken because of Unicode in git commit lines... :-/

I'm not a huge fan of mandatory emoji in commit messages either, but this is a poor excuse. A Git commit message can contain any sequence of bytes except for a NUL byte. It can even contain invalid UTF-8. Tooling that doesn't treat commit messages like this is dangerously fragile. God forbid anyone accidentally pastes “typographer’s quotes” or text with diacritics into a commit message and breaks the build. On the pl…

Using emojis in elastic beanstalk and deploying the commit causes failure. So there are definitely problems with using emojis

Re: Git commit message styleguide

#28
Please don't do this. :lipstick: :sparkles: has absolutely no meaning when I'm working in a clone of your project, on the terminal, without access to the Internet.

I think it would be great to standardize (or at least widely adopt) some conventions for commit messages, especially with respect to tagging that isn't easily expressed by the "FOO: Imperative bar" style. Let's do it with plain text, not cute icons that get rendered differently (or not at all) depending on the OS or client you're on.

Re: Git commit message styleguide

#30
:checkered_flag: :globe_with_meridians: My subjec

Using emojis and limiting yourself to 50 chars is really difficult

Edit: Just seen that "Every Raw Emoji Text(:emoji:) is Counted as One Char!" - Great! But I'm not sure how Git CLI will like that.

Post reply on HN