@@ 58,6 58,10 @@ func show() {
gitcmd("show")
}
+func gitlog() {
+ gitcmd("log", "-5")
+}
+
func commit() {
cmd := exec.Command("git", "commit")
r, w, err := os.Pipe()
@@ 137,6 141,8 @@ func events() {
commit()
case "Show":
show()
+ case "Log":
+ gitlog()
default:
fmt.Println(text)
}