Skip to content

Instantly share code, notes, and snippets.

@berkes
Created April 6, 2016 11:29
Show Gist options
  • Save berkes/714141a6c131b20496fc00d6e3a90d38 to your computer and use it in GitHub Desktop.
Save berkes/714141a6c131b20496fc00d6e3a90d38 to your computer and use it in GitHub Desktop.
Time logging with git flow
set -e
working_dir=$(pwd)
feature=$2
action=$1
now=$(date -u +"%Y-%m-%dT%H:%M:%SZ") # ISO8601
echo "[$now] $working_dir $action $feature" >> ~/.git-flow-feature.log
log-git-flow-feature FINISHED "$@"
log-git-flow-feature STARTING "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment