aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Gomes <pjbgf@linux.com>2024-03-12 08:01:13 +0000
committerGitHub <noreply@github.com>2024-03-12 08:01:13 +0000
commit6af38e000608a795320cd17c99491853f0b8ad3a (patch)
tree109121ed45eb2cd52b536017ea52fa414212b84e
parente6c3e58198d176c497bb2dba1a2adb9302597676 (diff)
parent04f7b23cbb85040a276ab2b7d6879223779451fd (diff)
downloadgo-git-6af38e000608a795320cd17c99491853f0b8ad3a.tar.gz
Merge pull request #1047 from avoidalone/master
chore: fix some comments
-rw-r--r--_examples/README.md2
-rw-r--r--plumbing/format/gitignore/dir.go4
-rw-r--r--repository.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/_examples/README.md b/_examples/README.md
index 8097f09..1e9ea6a 100644
--- a/_examples/README.md
+++ b/_examples/README.md
@@ -33,4 +33,4 @@ Here you can find a list of annotated _go-git_ examples:
- [custom_http](custom_http/main.go) - Replacing the HTTP client using a custom one.
- [clone with context](context/main.go) - Cloning a repository with graceful cancellation.
- [storage](storage/README.md) - Implementing a custom storage system.
-- [sha256](sha256/main.go) - Init and commiting repositories that use sha256 as object format.
+- [sha256](sha256/main.go) - Init and committing repositories that use sha256 as object format.
diff --git a/plumbing/format/gitignore/dir.go b/plumbing/format/gitignore/dir.go
index d8fb30c..aca5d0d 100644
--- a/plumbing/format/gitignore/dir.go
+++ b/plumbing/format/gitignore/dir.go
@@ -116,7 +116,7 @@ func loadPatterns(fs billy.Filesystem, path string) (ps []Pattern, err error) {
return
}
-// LoadGlobalPatterns loads gitignore patterns from from the gitignore file
+// LoadGlobalPatterns loads gitignore patterns from the gitignore file
// declared in a user's ~/.gitconfig file. If the ~/.gitconfig file does not
// exist the function will return nil. If the core.excludesfile property
// 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) {
return loadPatterns(fs, fs.Join(home, gitconfigFile))
}
-// LoadSystemPatterns loads gitignore patterns from from the gitignore file
+// LoadSystemPatterns loads gitignore patterns from the gitignore file
// declared in a system's /etc/gitconfig file. If the /etc/gitconfig file does
// not exist the function will return nil. If the core.excludesfile property
// is not declared, the function will return nil. If the file pointed to by
diff --git a/repository.go b/repository.go
index d5e4f2f..a57c714 100644
--- a/repository.go
+++ b/repository.go
@@ -1807,7 +1807,7 @@ func (r *Repository) Merge(ref plumbing.Reference, opts MergeOptions) error {
}
// createNewObjectPack is a helper for RepackObjects taking care
-// of creating a new pack. It is used so the the PackfileWriter
+// of creating a new pack. It is used so the PackfileWriter
// deferred close has the right scope.
func (r *Repository) createNewObjectPack(cfg *RepackConfig) (h plumbing.Hash, err error) {
ow := newObjectWalker(r.Storer)