From 305f28004ecbc03ea353437cf4c76423d93fbbd8 Mon Sep 17 00:00:00 2001 From: Antonio Jesus Navarro Perez Date: Tue, 28 Feb 2017 11:56:10 +0100 Subject: _examples: improve documentation --- _examples/push/main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to '_examples/push') diff --git a/_examples/push/main.go b/_examples/push/main.go index aaec5a3..7c23642 100644 --- a/_examples/push/main.go +++ b/_examples/push/main.go @@ -7,6 +7,8 @@ import ( . "srcd.works/go-git.v4/_examples" ) +// Example of how to open a repository in a specific path, and do a push to +// his default remote (origin). func main() { CheckArgs("") path := os.Args[1] @@ -15,6 +17,7 @@ func main() { CheckIfError(err) Info("git push") + // push using default push options err = r.Push(&git.PushOptions{}) CheckIfError(err) } -- cgit From d24ea4984ce6871ea24eb376325082602c766295 Mon Sep 17 00:00:00 2001 From: Antonio Jesus Navarro Perez Date: Tue, 28 Feb 2017 12:21:02 +0100 Subject: Fix typos --- _examples/push/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '_examples/push') diff --git a/_examples/push/main.go b/_examples/push/main.go index 7c23642..809c26b 100644 --- a/_examples/push/main.go +++ b/_examples/push/main.go @@ -7,8 +7,8 @@ import ( . "srcd.works/go-git.v4/_examples" ) -// Example of how to open a repository in a specific path, and do a push to -// his default remote (origin). +// Example of how to open a repository in a specific path, and push to +// its default remote (origin). func main() { CheckArgs("") path := os.Args[1] @@ -17,7 +17,7 @@ func main() { CheckIfError(err) Info("git push") - // push using default push options + // push using default options err = r.Push(&git.PushOptions{}) CheckIfError(err) } -- cgit