Skip to content

Instantly share code, notes, and snippets.

@Quinten
Created December 21, 2015 22:05
Show Gist options
  • Save Quinten/2bf8c051de8964ac0358 to your computer and use it in GitHub Desktop.
Save Quinten/2bf8c051de8964ac0358 to your computer and use it in GitHub Desktop.
small snippet from .bashrc that sets the last commit message as note in the current runing timer harvest (with sow)
function harvest {
commitmsg=$(git log -1 --pretty=%B)
sow note "$commitmsg"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment