Improve command regex

Not all commands need arguments.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Add support for empty commits

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>