Service to access git through sweetp, you can
- get the name of the current branch
- make a commit
- get "git log" output in a processable form
- find a commit by its ref (aka hash)
See GitService.groovy for more detail.
For basic information see boilerplate service.
More Information on sweet productivity.