News for hackers. Stuff that matters.
Re:Ask HN: Emoji in Commit Messages or Not? by ladberg on Wednesday September 09, 2020 @03:49AM (#24418431)
Our tools automatically add an emoji at the beginning of commits for PRs that were approved, unapproved, or work-in-progress. I would say it's pretty beneficial because you can just scan down the git log and get an understanding of what's happening.

We also have the bonus of knowing exactly what web and git clients the whole team is using, but for more open projects it might be an issue.

Re:Ask HN: Emoji in Commit Messages or Not? by pplonski86 on Wednesday September 09, 2020 @05:13AM (#24418980)
Could you write the name of the tools that add emoji? Is your repo public, so I can see how it looks like?
Re:Ask HN: Emoji in Commit Messages or Not? by racedude on Thursday September 10, 2020 @11:13PM (#24438813)
I use this cli tool for my commit messages to follow the Gitmoji (https://gitmoji.carloscuesta.me/) format: gitmoji-cli (https://github.com/carloscuesta/gitmoji-cli)
Re:Ask HN: Emoji in Commit Messages or Not? by ladberg on Wednesday September 09, 2020 @12:59PM (#24423043)
Nope sorry, both the tools and repos are private.
Re:Ask HN: Emoji in Commit Messages or Not? by notRobot on Wednesday September 09, 2020 @03:25AM (#24418268)
Has been discussed before: https://news.ycombinator.com/item?id=21760021

Concensus seems to be that they should be avoided.

Re:Ask HN: Emoji in Commit Messages or Not? by pplonski86 on Wednesday September 09, 2020 @06:46AM (#24419606)
Thank you! Any good resources for writing good commit messages?
Re:Ask HN: Emoji in Commit Messages or Not? by emrox on Wednesday September 09, 2020 @07:46AM (#24419966)
I can recommend that article: https://chris.beams.io/posts/git-commit/
Re:Ask HN: Emoji in Commit Messages or Not? by kevinherron on Wednesday September 09, 2020 @08:51AM (#24420420)
Maybe I'm just a grumpy old (30-something...) developer now, but I'd prefer not to see emoji in commit messages. It seems unprofessional.

I really don't even like seeing those stupid READMEs full of them.

Re:Ask HN: Emoji in Commit Messages or Not? by curryst on Thursday September 10, 2020 @02:18PM (#24435047)
I've never thought of it, but I could see some potential value. How would one insert them? With the Slack-style :name: tags, or do you actually put the literal character in? The :name: version might be nice because it renders cleanly on the console.

They could be marginally useful as quick indicators for skimming git log output. In a well orchestrated system, you could do something like add 2 emojis to the front of every commit/MR indicating the reason for the change (bugfix,feature,etc) and the component of the system you touched. I.e. a bug emoji and a lock emoji for a bugfix in the auth system. As long as the info is kept high level, brief, and most importantly consistent (i.e. every MR has 2 emojis, or every MR has 4 emojis, there is no situation where an MR would have an extra or missing emoji), it should be really easy to skim. I don't know if that value is worth the pain of having to bicker about whether a particular emoji should be labeled with bugfix vs enhancement and such.

I wouldn't encode any information solely in emoji characters because of the relative difficulty of displaying them in consoles and of automatically parsing them in something like bash. If I was going to do that emoji tagging, I would make it a requirement that there are accompanying tags in the message (or make a tool that automatically appends them based on the emojis).

Re:Ask HN: Emoji in Commit Messages or Not? by racedude on Thursday September 10, 2020 @11:11PM (#24438807)
This sounds a lot like Gitmoji: https://gitmoji.carloscuesta.me/
Re:Ask HN: Emoji in Commit Messages or Not? by 2rsf on Wednesday September 09, 2020 @09:09AM (#24420597)
No. Emoji don't show well on the command line, I have never seen a a commit message using one.
Re:Ask HN: Emoji in Commit Messages or Not? by rvz on Wednesday September 09, 2020 @03:43AM (#24418395)
But why? It may be tempting for developers using web based git clients but it is quite frankly superfluous.

Not all Emoji will be rendered correctly in all Git Clients.

Tags such as [BUG], [FIX], fix:, etc is unambiguous, unlike some Emojis used.

Re:Ask HN: Emoji in Commit Messages or Not? by pplonski86 on Wednesday September 09, 2020 @03:23AM (#24418254)
For example in fastAPI repo I see emojis in the commits https://github.com/tiangolo/fastapi