aboutsummaryrefslogtreecommitdiffstats
path: root/_examples/commit/main.go
diff options
context:
space:
mode:
Diffstat (limited to '_examples/commit/main.go')
-rw-r--r--_examples/commit/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/_examples/commit/main.go b/_examples/commit/main.go
index c83dc98..4529c84 100644
--- a/_examples/commit/main.go
+++ b/_examples/commit/main.go
@@ -46,7 +46,8 @@ func main() {
// Commits the current staging area to the repository, with the new file
// just created. We should provide the object.Signature of Author of the
- // commit.
+ // commit Since version 5.0.1, we can omit the Author signature, being read
+ // from the git config files.
Info("git commit -m \"example go-git commit\"")
commit, err := w.Commit("example go-git commit", &git.CommitOptions{
Author: &object.Signature{