Created
April 6, 2016 11:29
-
-
Save berkes/714141a6c131b20496fc00d6e3a90d38 to your computer and use it in GitHub Desktop.
Time logging with git flow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log-git-flow-feature FINISHED "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log-git-flow-feature STARTING "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment