Jade's weblog

Setting up git commit emails

We're moving Volunteer Solutions to git this week. One thing that wasn't documented well was how to set up git emails.

There is a git-notify script out there, but in contrib there is post-receive-email.

It's actually easy to set up:

cd .git/hooks
mv post-receive post-receive.bak
ln -s /path/to/post-receive-email post-receive
chmod a+x /path/to/post-receive-email
git config --add hooks.mailinglist "email@address.com"
git config hooks.emailprefix "[scms]"
emacs ../description (make first line short description, then add more later)

Note that the script seemed to only send emails when they were pushed from outside.

06:58 PM, 12 Jun 2008 by Jade Rubick Permalink | Comments (0)

"When pollsters offer voters hypothetical matchups, Mr. Obama does better than Mrs. Clinton against Mr. McCain. For example, a Cook Political Report poll of registered voters released this week found Mr. McCain beats Mrs. Clinton, 45 percent to 41 percent. But Mr. Obama beats Mr. McCain, 45 percent to 43 percent. The latest Washington Post/ABC News poll found similar results.

Mr. Obama also has the highest approval rating of any major candidate among independents, 62 percent, according to a recent Pew Research Center poll. He also has unusually low negatives, which gives him upside potential."

04:48 PM, 07 Feb 2008 by Jade Rubick Permalink | Comments (0)

Valid characters in a tcl proc definition

It appears you can include ! and ? in proc names in Tcl. So you can do nice Ruby-like proc names, such as

valid?
proc_with_side_effect!

Interesting.

06:52 PM, 30 Jan 2008 by Jade Rubick Permalink | Comments (0)

XML