aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing
diff options
context:
space:
mode:
authoravoidalone <wuguangdong@outlook.com>2024-03-11 15:20:35 +0800
committeravoidalone <wuguangdong@outlook.com>2024-03-12 11:51:33 +0800
commit04f7b23cbb85040a276ab2b7d6879223779451fd (patch)
treebe1ebbe0ad0e31d9b93682e3e64203be0458d050 /plumbing
parentca05e2c4d8cb1801d3a8c12773bac206774871a3 (diff)
downloadgo-git-04f7b23cbb85040a276ab2b7d6879223779451fd.tar.gz
*: fix some comments
Signed-off-by: avoidalone <wuguangdong@outlook.com>
Diffstat (limited to 'plumbing')
-rw-r--r--plumbing/format/gitignore/dir.go4
1 files changed, 2 insertions, 2 deletions
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