Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- PREFIX="from now"
- MESSAGE="[${PREFIX}] `date +\"%Y/%m/%d %T\"`"
- if [ $# -eq 0 ]
- then
- git add -u
- printf "${MESSAGE}\n\n%s" "`git diff --cached`" | git commit -F -
- else
- then
- if [ $1 != "--all" ]
- then
- git add $@
- else
- git add -u
- git add .
- fi
- printf "${MESSAGE}\n\n%s" "`git diff --cached`" | git commit -F -
- fi
Add Comment
Please, Sign In to add comment