From 8303f7626e61d6aeadc5ccf04bda12474acb6cd5 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 13 Oct 2013 16:26:12 -0400 Subject: spell check --- public/git-go-pre-commit.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/git-go-pre-commit.md') diff --git a/public/git-go-pre-commit.md b/public/git-go-pre-commit.md index 74dca28..84137cc 100644 --- a/public/git-go-pre-commit.md +++ b/public/git-go-pre-commit.md @@ -7,7 +7,7 @@ One of the (many) wonderful things about the Go programming language is the `gofmt` tool, which formats your source in a canonical way. I thought it would be nice to integrate this in my `git` workflow by adding it in a pre-commit hook to automatically format my source code -when I commited it. +when I committed it. The Go distribution contains a git pre-commit hook that checks whether the source code is formatted, and aborts the commit if it isn't. I @@ -15,7 +15,7 @@ don't remember if I was aware of this at the time (or if it even existed at the time, or if it is new), but I wanted it to go ahead and format the code for me. -I found a few solutions online, but they wre all missing +I found a few solutions online, but they were all missing something—support for partial commits. I frequently use `git add -p`/`git gui` to commit a subset of the changes I've made to a file, the existing solutions would end up adding the entire set of changes -- cgit v1.2.3