Skip to content

Commit e7f5448

Browse files
authored
Merge pull request go-git#75 from mcuadros/scope-config
repository.ConfigScoped and worktree.Commit with empty CommitOptions
2 parents 6d8103d + baf8c27 commit e7f5448

File tree

17 files changed

+376
-682
lines changed

17 files changed

+376
-682
lines changed

_examples/README.md

+18-17
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,27 @@
33
Here you can find a list of annotated _go-git_ examples:
44

55
### 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.
99
- [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.
1111
- [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.
1818
- [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.
2425

2526
### 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.
2728
- [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.

_examples/commit/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ func main() {
4646

4747
// Commits the current staging area to the repository, with the new file
4848
// 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.
5051
Info("git commit -m \"example go-git commit\"")
5152
commit, err := w.Commit("example go-git commit", &git.CommitOptions{
5253
Author: &object.Signature{

_examples/config/main.go

-73
This file was deleted.

0 commit comments

Comments
 (0)