Re: Status shows untracked directory without any untracked file in it
On Fri, Apr 06, 2012 at 08:58:03PM +0200, Johannes Sixt wrote:
Show 5 quoted lines
> Am 06.04.2012 07:19, schrieb Alexander Kostikov:
> >How that is possible? Is it a bug?
>
> I don't think so. git status normally does not look inside
> directories that do not contain any tracked files.
I think it does:
$ git init tmp && cd tmp
$ echo content >tracked
$ git add tracked
$ mkdir untracked
$ git status --untracked-files=normal
# On branch master
#
# Initial commit
#
# Changes to be committed:
# new file: tracked
#
$ >untracked/file
$ git status --untracked-files=normal
# On branch master
#
# Initial commit
#
# Changes to be committed:
# new file: tracked
#
# Untracked files:
# untracked/
-Peff