Skip to content

Commit 6af38e0

Browse files
authored
Merge pull request #1047 from avoidalone/master
chore: fix some comments
2 parents e6c3e58 + 04f7b23 commit 6af38e0

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

_examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ Here you can find a list of annotated _go-git_ examples:
3333
- [custom_http](custom_http/main.go) - Replacing the HTTP client using a custom one.
3434
- [clone with context](context/main.go) - Cloning a repository with graceful cancellation.
3535
- [storage](storage/README.md) - Implementing a custom storage system.
36-
- [sha256](sha256/main.go) - Init and commiting repositories that use sha256 as object format.
36+
- [sha256](sha256/main.go) - Init and committing repositories that use sha256 as object format.

plumbing/format/gitignore/dir.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func loadPatterns(fs billy.Filesystem, path string) (ps []Pattern, err error) {
116116
return
117117
}
118118

119-
// LoadGlobalPatterns loads gitignore patterns from from the gitignore file
119+
// LoadGlobalPatterns loads gitignore patterns from the gitignore file
120120
// declared in a user's ~/.gitconfig file. If the ~/.gitconfig file does not
121121
// exist the function will return nil. If the core.excludesfile property
122122
// is not declared, the function will return nil. If the file pointed to by
@@ -132,7 +132,7 @@ func LoadGlobalPatterns(fs billy.Filesystem) (ps []Pattern, err error) {
132132
return loadPatterns(fs, fs.Join(home, gitconfigFile))
133133
}
134134

135-
// LoadSystemPatterns loads gitignore patterns from from the gitignore file
135+
// LoadSystemPatterns loads gitignore patterns from the gitignore file
136136
// declared in a system's /etc/gitconfig file. If the /etc/gitconfig file does
137137
// not exist the function will return nil. If the core.excludesfile property
138138
// is not declared, the function will return nil. If the file pointed to by

repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,7 @@ func (r *Repository) Merge(ref plumbing.Reference, opts MergeOptions) error {
18071807
}
18081808

18091809
// createNewObjectPack is a helper for RepackObjects taking care
1810-
// of creating a new pack. It is used so the the PackfileWriter
1810+
// of creating a new pack. It is used so the PackfileWriter
18111811
// deferred close has the right scope.
18121812
func (r *Repository) createNewObjectPack(cfg *RepackConfig) (h plumbing.Hash, err error) {
18131813
ow := newObjectWalker(r.Storer)

0 commit comments

Comments
 (0)