Re: Status shows untracked directory without any untracked file in it
|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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.
alexko@ALEXKO-LAB b:\ » git status --untracked-files=normal # On branch master # Untracked files: # (use "git add<file>..." to include in what will be committed) # # data/fex/lba/hi/qna/ nothing added to commit but untracked files present (use "git add" to track)
Here, git status only knows that it does not track anything inside .../qna/, and it tells you that it found this directory.
alexko@ALEXKO-LAB b:\ » git status --untracked-files=all # On branch master nothing to commit (working directory clean)
Here, you ask to list files in all directories, but, alas, the directory does not contain anything untracked. The directory itself is not listed, because git would be unable to track an empty directory.
-- Hannes -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
[Newbies FAQ] [Linux Kernel Development] [Free Online Dating] [Gcc Help] [IETF Annouce] [DCCP] [Netdev] [Networking] [Security] [V4L] [Bugtraq] [Free Online Dating] [Photo] [Yosemite] [MIPS Linux] [ARM Linux] [Linux Security] [Linux RAID] [Linux SCSI] [Fedora Users] [Linux Resources]