Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-13612

Ignore file patterns diff option does not work for untracked files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 3.4.4
    • General
    • Severity 3 - Minor

    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:

      1. Create a very large text file and name it dump.sql
      2. Open the sourcetree options, go to the diff tab and add ,*dump.sql to the ignore file patterns list.
      3. Save the options and restart sourcetree to ensure they take effect.
      4. Reopen sourcetree and select dump.sql from the unstaged files list. The full file will be loaded.
      5. Stage dump.sql.
      6. 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            25f5fcabbc91 lpd
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: