Sublime Forum

Sublime Text 4200 shows untracked files despite .gitignore

#1

Sublime Text 4200 (macOS 15.5) is showing sub-folders of a Git repo as untracked despite .gitignore set to ignore all sub-folders. In the attached screenshot you can see the sidebar circles indicating untracked files/folders (see hover text). The .gitignore for this repo contains **/ (ignore all sub-folders pattern). This appears to have started with version 4200 (previous builds worked as expected).

fwiw: a fix for this is to use */ rather than **/ in .gitignore, but that may not work depending on the nesting/recursion needed for the repo.

also note: Git itself does not see these sub-folders and their contents as untracked. That is to say: the working tree is clean. It is just ST’s sidebar that sees these files/folders as untracked.

sublime_untracked

0 Likes

#2
  1. I can confirm **/ in .gitignore not excluding directories.
  2. Using */ is however a valid option, because if a(ny) top-level directory is marked untracked as a whole, any contained file or sub-directory is automatically ignored as well.

Issues are tracked at https://github.com/sublimehq/sublime_text/issues

0 Likes

#3

@deathaxe Thanks for the reply. I am just confirming that this issue started with ST 4200. I have several repos with **/ in .gitignore and they were working as expected (not showing sub-folders as untracked in sidebar) in ST 4192 (and before).

0 Likes

#4

Opened an issue for tracking:

0 Likes