Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

how to ignore files by global gitignore? #603

Open
@tyru

Description

@tyru

I want to check if a repository has dirty worktree.
but Worktree.Status() lists up ignored files by global gitignore ($HOME/.gitconfig 's core.excludesfile).

I read COMPATIBILITY.md and it says:

Reading and modifying per-repository configuration (.git/config) is supported. Global configuration ($HOME/.gitconfig) is not.

so maybe I have to parse $HOME/.gitconfig manually, and get core.excludesfile, and check ignore files one by one.
but how?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions