Skip to content

Bug: Global gitignore is not respected #206

Description

@ninehd

Bug: Global gitignore is not respected

GooeyPi does not seem to respect Git's global ignore file in the Changes view.

Setup

I'm on Linux and use the standard XDG Git configuration.

My global ignore file is located at:

~/.config/git/ignore

with the following content:

.idea/
.DS_Store

Git itself correctly respects this file.

For example:

git check-ignore -v .idea/misc.xml

correctly reports the global ignore rule, and:

git status

does not show the .idea/ files.

Actual behavior

GooeyPi still displays files such as:

.idea/.gitignore
.idea/misc.xml
.idea/modules.xml
.idea/vcs.xml

as untracked (??) in the Changes view.

Expected behavior

GooeyPi's Changes view should respect the same ignore rules as Git, including:

  • repository .gitignore
  • .git/info/exclude
  • global core.excludesFile
  • the XDG global ignore file (~/.config/git/ignore)

Ideally, the files displayed by GooeyPi should be consistent with what git status reports.

Environment

  • OS: Linux
  • Git config: ~/.config/git/config
  • Global Git ignore: ~/.config/git/ignore

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions