#!/bin/bash # example of how it might be used in a git hook whenwasit --ignore .whenwasit-ignore . > .whenwasit git add .whenwasit