-
Notifications
You must be signed in to change notification settings - Fork 893
Open
Labels
bugSomething isn't workingSomething isn't workingno-autocloseIssues/PRs to be ignored by stale botIssues/PRs to be ignored by stale bot
Description
Discussed in #793
Originally posted by romainreignier June 15, 2023
In my ~/.gitconfig, I have the following section:
[core]
excludesfile = /home/user/.gitignore
But go-git does not seem to read it with worktree.Status() and status.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
When using a global gitignore file defined in ~/.gitconfig, go-git does not read it it with worktree.Status() and status.IsClean().
In order for this gitignore to be read, the gitignore.LoadGlobalPatterns() needs to be used, as done in this code I have found with a Github search:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingno-autocloseIssues/PRs to be ignored by stale botIssues/PRs to be ignored by stale bot