fork of go-git with some jj specific features
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

_examples: config example

+20 -18
+18 -17
_examples/README.md
··· 3 3 Here you can find a list of annotated _go-git_ examples: 4 4 5 5 ### Basic 6 - - [showcase](showcase/main.go) - A small showcase of the capabilities of _go-git_ 7 - - [open](open/main.go) - Opening a existing repository cloned by _git_ 8 - - [clone](clone/main.go) - Cloning a repository 6 + - [showcase](showcase/main.go) - A small showcase of the capabilities of _go-git_. 7 + - [open](open/main.go) - Opening a existing repository cloned by _git_. 8 + - [clone](clone/main.go) - Cloning a repository. 9 9 - [username and password](clone/auth/basic/username_password/main.go) - Cloning a repository 10 - using a username and password 10 + using a username and password. 11 11 - [personal access token](clone/auth/basic/access_token/main.go) - Cloning 12 - a repository using a GitHub personal access token 13 - - [commit](commit/main.go) - Commit changes to the current branch to an existent repository 14 - - [push](push/main.go) - Push repository to default remote (origin) 15 - - [pull](pull/main.go) - Pull changes from a remote repository 16 - - [checkout](checkout/main.go) - Check out a specific commit from a repository 17 - - [log](log/main.go) - Emulate `git log` command output iterating all the commit history from HEAD reference 12 + a repository using a GitHub personal access token. 13 + - [commit](commit/main.go) - Commit changes to the current branch to an existent repository. 14 + - [push](push/main.go) - Push repository to default remote (origin). 15 + - [pull](pull/main.go) - Pull changes from a remote repository. 16 + - [checkout](checkout/main.go) - Check out a specific commit from a repository. 17 + - [log](log/main.go) - Emulate `git log` command output iterating all the commit history from HEAD reference. 18 18 - [branch](branch/main.go) - How to create and remove branches or any other kind of reference. 19 - - [tag](tag/main.go) - List/print repository tags 20 - - [remotes](remotes/main.go) - Working with remotes: adding, removing, etc 21 - - [progress](progress/main.go) - Printing the progress information from the sideband 22 - - [revision](revision/main.go) - Solve a revision into a commit 23 - - [submodule](submodule/main.go) - Submodule update remote 19 + - [tag](tag/main.go) - List/print repository tags. 20 + - [remotes](remotes/main.go) - Working with remotes: adding, removing, etc. 21 + - [progress](progress/main.go) - Printing the progress information from the sideband. 22 + - [revision](revision/main.go) - Solve a revision into a commit. 23 + - [config](config/main.go) - Explains how to work with config files. 24 + - [submodule](submodule/main.go) - Submodule update remote. 24 25 25 26 ### Advanced 26 - - [custom_http](custom_http/main.go) - Replacing the HTTP client using a custom one 27 + - [custom_http](custom_http/main.go) - Replacing the HTTP client using a custom one. 27 28 - [clone with context](context/main.go) - Cloning a repository with graceful cancellation. 28 - - [storage](storage/README.md) - Implementing a custom storage system 29 + - [storage](storage/README.md) - Implementing a custom storage system.
+2 -1
_examples/commit/main.go
··· 46 46 47 47 // Commits the current staging area to the repository, with the new file 48 48 // just created. We should provide the object.Signature of Author of the 49 - // commit. 49 + // commit Since version 5.0.1, we can omit the Author signature, being read 50 + // from the git config files. 50 51 Info("git commit -m \"example go-git commit\"") 51 52 commit, err := w.Commit("example go-git commit", &git.CommitOptions{ 52 53 Author: &object.Signature{