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 382
    • Issues 382
    • 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
  • #3093
Closed
Open
Issue created Oct 17, 2017 by Christian Apolloni@bsolar

Icon overlay show ignored directories containing files as modified

What steps will reproduce the problem?

  1. Create a new empty repository.
  2. Create a .gitignore with the content subdir/
  3. Create the subdir/ directory.
  4. Create testfile under subdir/

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

Tortoisegit diff will show .gitignore as unversioned and subdir/testfile as ignored.

git status agrees on .gitignore but shows subdir/ as ignored instead of subdir/testfile, which isn't show at all:

$ git status --ignored
On branch master

No commits yet

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        .gitignore

Ignored files:
  (use "git add -f <file>..." to include in what will be committed)

        subdir/

nothing added to commit but untracked files present (use "git add" to track)

Icon overlay of subdir/testfile is missing, which is expected since the file is ignored.

Icon overlay of subdir/ shows as modified (red icon with !), which is unexpected since it's ignored.

What I expect is the icon overlay of subdir/ to be missing too, since the directory is ignored.

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

TortoiseGit 2.5.0.0

git version 2.14.1.windows.1

Windows 7 Enterprise SP1, 64bit

Please provide any additional information below.

Using the pattern subdir/* or subdir/** in .gitignore has the expected behavior.

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