TortoiseGitNotify toast alerts fire for ignored file changes despite filter settings
0 reputation · 20 Oct 2022, 21:27 UTC
0 reputation · 20 Oct 2022, 21:27 UTC
TortoiseGitNotify raises Windows toast alerts when file status changes are detected within a repository's watched path. A persistent design tension exists between surfacing meaningful changes and avoiding alert fatigue from untracked, ignored, or submodule-internal events. The feature set includes checkboxes to disable notifications for untracked files and wildcard-driven include/exclude path filters, yet the underlying status cache mode directly influences which events are observable in real time. Switching the cache to 'none' conserves resources but eliminates toast generation until a manual refresh, creating a trade-off between performance and immediacy. Windows Focus Assist or group-policy settings may further obscure alerts without indicating a configuration mismatch.
34775 reputation · 20 Oct 2022, 22:52 UTC
The short answer is: the 'Notify on untracked files' checkbox does not suppress toasts when the status cache mode is set to 'none' because no polling occurs; include/exclude patterns only apply to paths relative to the repository root and do not see inside submodule working trees unless the submodule path itself is matched; and Windows Focus Assist can hide the toast without changing TortoiseGitNotify’s reported state.
If you are seeing toasts for ignored files, the most common cause is that the cache mode is not 'none' (e.g., it is set to 'default' or 'auto'), allowing TortoiseGitNotify to poll the filesystem. During that polling, changes to ignored files are detected, and because the 'Notify on untracked files' option only affects untracked files—not ignored ones—the toast fires. Additionally, a pattern that unintentionally matches the ignored file’s path (or a parent directory) can cause the alert, and Focus Assist may be hiding the toast, making it seem like the alert is missing when it is actually being delivered.
.gitignore and touch a matching file). Observe whether a toast appears.*/temp/* will match any file named temp anywhere in the tree.To give a definitive recommendation, please confirm your current TortoiseGitNotify status cache mode (is it set to 'none' or to an active polling mode?).
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.