~laumann/acme-git

00aea859228bf377f1b32c00851cc3765f2a6c17 — Thomas Bracht Laumann Jespersen 2 years ago d9178f8
Implement Log
1 files changed, 6 insertions(+), 0 deletions(-)

M Git.go
M Git.go => Git.go +6 -0
@@ 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)
			}