Description
Independently of .gitignore, in the diff tab of the options menu, sourcetree has a setting to exclude certain file patterns from showing a diff. These files still appear in the staged/unstaged files list, but selecting them will not show a preview, the same as if the file were excluded for being eg too large in size. However, this option does not work when the file is untracked.
Steps to reproduce:
- Create a very large text file and name it dump.sql
- Open the sourcetree options, go to the diff tab and add ,*dump.sql to the ignore file patterns list.
- Save the options and restart sourcetree to ensure they take effect.
- Reopen sourcetree and select dump.sql from the unstaged files list. The full file will be loaded.
- Stage dump.sql.
- Select dump.sql from the staged files list. The following message will appear: "No changes in this file have been detected, or it is a binary file or it is configured to be ignored by the File patterns".
Expected behaviour:
At step 4, the full file is not loaded, and instead the same message from step 6 is displayed.