Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Configure Commit Capturing

Matthew Hutchinson edited this page · 2 revisions

lolcommits has some capture options for additional lulz. You can enable these via environment variables like so;

  • LOLCOMMITS_DEVICE set a webcam device - mac and linux only
  • LOLCOMMITS_ANIMATE (in seconds) set time for capturing an animated gif - mac only & requires ffmpeg
  • LOLCOMMITS_DELAY (in seconds) set delay persistently (for slow webcams to warmup)
  • LOLCOMMITS_FONT set font file location for lolcommit text
  • LOLCOMMITS_FORK fork lolcommit runner (capture command forks to a new process, speedily returning you to your terminal)
  • LOLCOMMITS_STEALTH disable notification messages at commit time

Or they can be set via the following arguments in the capture command (located in your repository's .git/hooks/post-commit file).

  • --device=DEVICE or -d DEVICE (mac/linux only)
  • --animate=SECONDS or -a SECONDS
  • --delay=SECONDS or -w SECONDS
  • --font=FONT_PATH or -f FONT_PATH
  • --fork
  • --stealth

NOTE: Any extra arguments you pass with the --enable command are auto-appended to the git-commit capture command. For example;

lolcommits --enable --delay=5 --animate=4 --fork                                                                                                   

This will configure capturing of an animated gif (4 secs) after a 5 sec delay in a forked process. See the section below for more capture configuration variables.

NOTE: Use the --devices argument to see a list of available attached camera devices (mac only)

Something went wrong with that request. Please try again.