{"thread":{"id":"30160","subject":"Status shows untracked directory without any untracked file in it","startedAt":"2012-04-06T05:19:00Z","lastAt":"2012-04-06T22:04:01Z","messageCount":5,"participants":["Alexander Kostikov","Jeff King","Johannes Sixt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"188629","messageId":"CAGAhT3n3hHV+UhT+D1o60OAS23WFmx+Lxg=aqYMGC=U-LR1QUA@mail.gmail.com","threadId":"30160","inReplyTo":null,"subject":"Status shows untracked directory without any untracked file in it","fromName":"Alexander Kostikov","fromEmail":"alex.kostikov@gmail.com","sentAt":"2012-04-06T05:19:00Z","receivedAt":"2012-04-06T05:19:00Z","isPatch":false,"sender":{"key":"alex.kostikov@gmail.com","avatar":"https://gravatar.com/avatar/790c4ea9bf7f65be03b0d1c389b5dee8d1e704441d75e690c4372c30f7943e14?d=mp&s=160"},"body":"How that is possible? Is it a bug?\n\nalexko@ALEXKO-LAB b:\\\n» git status --untracked-files=normal\n# On branch master\n# Untracked files:\n#   (use \"git add <file>...\" to include in what will be committed)\n#\n#       data/fex/lba/hi/qna/\nnothing added to commit but untracked files present (use \"git add\" to track)\n\nalexko@ALEXKO-LAB b:\\\n» git status --untracked-files=all\n# On branch master\nnothing to commit (working directory clean)\n\n--\nAlexander Kostikov\n"},{"id":"188633","messageId":"20120406061447.GC25301@sigill.intra.peff.net","threadId":"30160","inReplyTo":"CAGAhT3n3hHV+UhT+D1o60OAS23WFmx+Lxg=aqYMGC=U-LR1QUA@mail.gmail.com","subject":"Re: Status shows untracked directory without any untracked file in it","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2012-04-06T06:14:47Z","receivedAt":"2012-04-06T06:14:47Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Apr 05, 2012 at 10:19:00PM -0700, Alexander Kostikov wrote:\n\n> How that is possible? Is it a bug?\n\nMaybe. What git version and what platform are you on? There was a bug in\nversions of git earlier than v1.7.8 that showed the symptom you describe\non case-insensitive filesystems. It was fixed by commit 2548183, which\ncontains more details.\n\n-Peff\n"},{"id":"188677","messageId":"4F7F3CBB.8030805@kdbg.org","threadId":"30160","inReplyTo":"CAGAhT3n3hHV+UhT+D1o60OAS23WFmx+Lxg=aqYMGC=U-LR1QUA@mail.gmail.com","subject":"Re: Status shows untracked directory without any untracked file in it","fromName":"Johannes Sixt","fromEmail":"j6t@kdbg.org","sentAt":"2012-04-06T18:58:03Z","receivedAt":"2012-04-06T18:58:03Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 06.04.2012 07:19, schrieb Alexander Kostikov:\n> How that is possible? Is it a bug?\n\nI don't think so. git status normally does not look inside directories \nthat do not contain any tracked files.\n\n> alexko@ALEXKO-LAB b:\\\n> » git status --untracked-files=normal\n> # On branch master\n> # Untracked files:\n> #   (use \"git add<file>...\" to include in what will be committed)\n> #\n> #       data/fex/lba/hi/qna/\n> nothing added to commit but untracked files present (use \"git add\" to track)\n\nHere, git status only knows that it does not track anything inside \n.../qna/, and it tells you that it found this directory.\n\n> alexko@ALEXKO-LAB b:\\\n> » git status --untracked-files=all\n> # On branch master\n> nothing to commit (working directory clean)\n\nHere, you ask to list files in all directories, but, alas, the directory \ndoes not contain anything untracked. The directory itself is not listed, \nbecause git would be unable to track an empty directory.\n\n-- Hannes\n"},{"id":"188698","messageId":"20120406215956.GA31207@sigill.intra.peff.net","threadId":"30160","inReplyTo":"4F7F3CBB.8030805@kdbg.org","subject":"Re: Status shows untracked directory without any untracked file in it","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2012-04-06T21:59:56Z","receivedAt":"2012-04-06T21:59:56Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, Apr 06, 2012 at 08:58:03PM +0200, Johannes Sixt wrote:\n\n> Am 06.04.2012 07:19, schrieb Alexander Kostikov:\n> >How that is possible? Is it a bug?\n> \n> I don't think so. git status normally does not look inside\n> directories that do not contain any tracked files.\n\nI think it does:\n\n  $ git init tmp && cd tmp\n  $ echo content >tracked\n  $ git add tracked\n  $ mkdir untracked\n\n  $ git status --untracked-files=normal\n  # On branch master\n  #\n  # Initial commit\n  #\n  # Changes to be committed:\n  #       new file:   tracked\n  #\n\n  $ >untracked/file\n  $ git status --untracked-files=normal\n  # On branch master\n  #\n  # Initial commit\n  #\n  # Changes to be committed:\n  #       new file:   tracked\n  #\n  # Untracked files:\n  #       untracked/\n\n-Peff\n"},{"id":"188699","messageId":"20120406220401.GA31346@sigill.intra.peff.net","threadId":"30160","inReplyTo":"CAGAhT3nmOtZLusT8DXy9iWQsNkH2Pqc3YCf-22FZJ-fhHf38cw@mail.gmail.com","subject":"Re: Status shows untracked directory without any untracked file in it","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2012-04-06T22:04:01Z","receivedAt":"2012-04-06T22:04:01Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"[Please keep replies on the list, so others can benefit from the\n discussion. And please don't top-post.]\n\nOn Fri, Apr 06, 2012 at 09:30:20AM -0700, Alexander Kostikov wrote:\n\n> Windows. 1.7.9.msysgit.0\n> \n> On Thu, Apr 5, 2012 at 11:14 PM, Jeff King <peff@peff.net> wrote:\n> >\n> > Maybe. What git version and what platform are you on? There was a bug in\n> > versions of git earlier than v1.7.8 that showed the symptom you describe\n> > on case-insensitive filesystems. It was fixed by commit 2548183, which\n> > contains more details.\n\nYour version should have the fix, so it may be a new issue. Is it easily\nreproducible? Can you share a short reproduction recipe, or possibly\nshare the repo showing the problem?\n\n-Peff\n"}]}