sublime_merge icon indicating copy to clipboard operation
sublime_merge copied to clipboard

Ignored files in global gitignore appear as untracked files

Open Chris-May opened this issue 3 years ago • 0 comments

Version info

  • OS: macOS 12.5.1
  • Build: 2076

Description

Sublime merge shows untracked files that match ignored files in my global config.

Steps to reproduce

I have a global gitignore file at ~/.gitignore

> cat ~/.gitignore
.DS_Store
> git config --show-origin --get core.excludesfile
file:/Users/chris/.gitconfig	~/.gitignore
  • Sublime Merge shows two .DS_Store files as Untracked Files. Running git status does not show those files.

  • Editing the ~/.gitignore file to include only .DS_Stor (by deleting the "e") brings both files into the git status report.

  • Adding it again clears them from git status, but not Sublime Merge.

My ~/.gitignore file is linked to another folder, but I also changed my git configuration to a run-of-the-mill file with the same results.

Expected behavior

Ignored files in ~/.gitignore should not be displayed in SM

Chris-May avatar Aug 22 '22 19:08 Chris-May