HyperText Thrones

By Deden Fathurahman
← Posts

Hipsterized commit

After adding current listened track into my commit message, now i’m adding the action, i take picture everytime commiting something. here’s how.

the hook

COMMITID=$(git rev-parse HEAD)
imagesnap -q -w 1 .gitsnap/$COMMITID.jpg`

save as post-commit (so it will run after commit)

Published: March 6, 2013
Length: less than 1 minute read (75 words)