21 comments

[ 3.4 ms ] story [ 56.8 ms ] thread
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.
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.
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.

(comment deleted)
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`"'
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.