How to use gitignore.LoadGlobalPatterns() to use global ~/.gitignore? #793
Replies: 2 comments
-
|
With a Github global search, I have found an usage of it: I should have searched harder before asking. But an example about that use case might be interesting, isn't it? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
You should not need to read that file manually, it should already read it for you automatically... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In my
~/.gitconfig, I have the following section:But go-git does not seem to read it with
worktree.Status()andstatus.IsClean().I have found the function
gitignore.LoadGlobalPatterns()which is supposed to help. But it seems that this function is never called and I don't understand how to use it.Does someone know how to use it?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions