Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 380
    • Issues 380
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGitTortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #3365
Closed
Open
Issue 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
Time tracking