gitstatus icon indicating copy to clipboard operation
gitstatus copied to clipboard

Respect git config's core.excludesfile

Open BrainStone opened this issue 3 years ago • 3 comments
trafficstars

You can configure a global gitignore file using the core.excludesfile git config setting.

This seems to be ignored currently.

Beyond that it can also be used to configure an additional gitignore file for a repository or to locally make the global gitignore file ineffective.
I would very much apprechiate this setting being respected.

Details are mentioned in the official docs: https://git-scm.com/docs/gitignore

BrainStone avatar Feb 01 '22 23:02 BrainStone

I'm afraid I won't have the cycles to implement this. If you send a clean PR, I'll merge it.

romkatv avatar Feb 01 '22 23:02 romkatv

Is there already some code that reads git config values or would that need to be implemented too?

BrainStone avatar Feb 01 '22 23:02 BrainStone

Is there already some code that reads git config values or would that need to be implemented too?

That code is in libgit2.

Can you check whether lg2 status works? You'll need to compile lg2 from sources. If it doesn't work, it needs to be fixed in libgit2.

romkatv avatar Feb 14 '22 09:02 romkatv