Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PostCheckoutTmpl = template.Must(template.New("name").Parse(`#!/bin/sh
# when checkout is a branch, start timer
if [ $3 -eq 1 ]; then
glass start;
fi
`))
View Source
var PostCommitTmpl = template.Must(template.New("name").Parse(`#!/bin/sh
#always reset after commit
glass lap
`))
View Source
var PrepCommitTmpl = template.Must(template.New("name").Parse(`#!/bin/sh
# only add time to template and message sources
# @see http://git-scm.com/docs/githooks#_prepare_commit_msg
case "$2" in
message|template)
printf "$(cat $1)$(glass status --time-only)" > "$1" ;;
esac
`))
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.