Skip to content

Commit 04f7b23

Browse files
committed
*: fix some comments
Signed-off-by: avoidalone <[email protected]>
1 parent ca05e2c commit 04f7b23

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

_examples/README.md

+1-1
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

+2-2
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,7 @@ func (r *Repository) RepackObjects(cfg *RepackConfig) (err error) {
17701770
}
17711771

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

0 commit comments

Comments
 (0)