Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login
Commit Message Generator (whatthecommit.com) similar stories update story
50.0 points by ashleyblackmore | karma 1331 | avg karma 12.92 2013-05-07 00:29:03+00:00 | hide | past | favorite | 22 comments



view as:

Very funny, may just check this out for some inspiration every once in a while. :)

Almost as funny as https://twitter.com/gitlost [NSFW: language] which uses GitHub's timeline feed to find git commit messages with profanity in them. I wrote it in the same spirit as Commit Logs From Last Night although CLFLN seems to use a data source with quite a bit of delay.

use http://whatthecommit.com/index.txt to pull just the text for a commit message.

For your ~/.profile (or whatever): curl --connect-timeout 1 http://whatthecommit.com/index.txt

Why a connect timeout? And why such a short one?

So that your ~/.profile loading doesn't hang when your network does. Nothing more frustrating then wanting to get something done quickly in the shell and having it stall.

I love it! May I ask how these are generated?

I wouldn't really call it a "generator"; it uses a static list: https://github.com/ngerakines/commitment/blob/master/commit_...

For your ~/.gitconfig:

  wtc = !git commit -m \"$(curl -s http://whatthecommit.com/index.txt)\"

what should happen? does it need to go in a specific "section" of the .gitconfig?

Yes, i forgot, it has to go into the [alias] section of .gitconfig.

It create a commit with a random message from whatthecommit.com; nothing you would push to your public repository; i use it in a script to backup some stuff in a git repo.


Does anyone else ever use "WIP" for work in progress? :)

WIP progress.

Yes, before I rebase.



I set this in my .profile file a while ago:

  alias gca='git add -A; git commit -a -m "`curl -s http://whatthecommit.com/index.txt`"'

Dear lord this is a bad idea

This is funny. But the reason that this is funny is because people actually say these things in commit messages. I mean, "updates" is a commonly used commit message for a colleague I work with. It makes me want to cry.

They sound nothing like the commit messages I've ever seen. I suppose I haven't seen much.

Legal | privacy