Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
TortoiseGit
TortoiseGit
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 302
    • Issues 302
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 9
    • Merge requests 9
  • Requirements
    • Requirements
    • List
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #3365

Closed
Open
Created Apr 03, 2019 by STCPeter@STCPeter

Ignore items by extension handles files/directories with no extension poorly

What steps will reproduce the problem?

  1. Select multiple files, including a file without extensions (such as a directory).
  2. Choose 'Add to ignore list', then chose 'Ignore X items by extension'.

What is the expected output? What do you see instead?

I expect selected directories or files without extensions to either be added by name or skipped.

Instead, .gitignore entries for the selected file extensions are added as expected, but a troubling entry is added for the selected directory or file without an extension, in which all files are set to ignore with the .gitignore entry of simply: /*

What version of TortoiseGit and Git are you using? On what operating system?

  • TortoiseGit 2.8.0.0
  • git version 2.20.1.windows.1
  • Windows 10 Pro

Please provide any additional information below.

I noticed this by selecting a directory with several files with extensions, but I suspect including a file with no extension would behave similarly.

I'd expect the files/directories without extensions to be added by name, despite the chosen extension option, but this may be debatable.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking