* Status shows untracked directory without any untracked file in it
@ 2012-04-06 5:19 Alexander Kostikov
2012-04-06 6:14 ` Jeff King
2012-04-06 18:58 ` Johannes Sixt
0 siblings, 2 replies; 5+ messages in thread
From: Alexander Kostikov @ 2012-04-06 5:19 UTC (permalink / raw)
To: Git List
How that is possible? Is it a bug?
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)
alexko@ALEXKO-LAB b:\
» git status --untracked-files=all
# On branch master
nothing to commit (working directory clean)
--
Alexander Kostikov
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Status shows untracked directory without any untracked file in it
2012-04-06 5:19 Status shows untracked directory without any untracked file in it Alexander Kostikov
@ 2012-04-06 6:14 ` Jeff King
[not found] ` <CAGAhT3nmOtZLusT8DXy9iWQsNkH2Pqc3YCf-22FZJ-fhHf38cw@mail.gmail.com>
2012-04-06 18:58 ` Johannes Sixt
1 sibling, 1 reply; 5+ messages in thread
From: Jeff King @ 2012-04-06 6:14 UTC (permalink / raw)
To: Alexander Kostikov; +Cc: Git List
On Thu, Apr 05, 2012 at 10:19:00PM -0700, Alexander Kostikov wrote:
> How that is possible? Is it a bug?
Maybe. What git version and what platform are you on? There was a bug in
versions of git earlier than v1.7.8 that showed the symptom you describe
on case-insensitive filesystems. It was fixed by commit 2548183, which
contains more details.
-Peff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Status shows untracked directory without any untracked file in it
2012-04-06 5:19 Status shows untracked directory without any untracked file in it Alexander Kostikov
2012-04-06 6:14 ` Jeff King
@ 2012-04-06 18:58 ` Johannes Sixt
2012-04-06 21:59 ` Jeff King
1 sibling, 1 reply; 5+ messages in thread
From: Johannes Sixt @ 2012-04-06 18:58 UTC (permalink / raw)
To: Alexander Kostikov; +Cc: Git List
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Status shows untracked directory without any untracked file in it
2012-04-06 18:58 ` Johannes Sixt
@ 2012-04-06 21:59 ` Jeff King
0 siblings, 0 replies; 5+ messages in thread
From: Jeff King @ 2012-04-06 21:59 UTC (permalink / raw)
To: Johannes Sixt; +Cc: Alexander Kostikov, Git List
On Fri, Apr 06, 2012 at 08:58:03PM +0200, Johannes Sixt wrote:
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Status shows untracked directory without any untracked file in it
[not found] ` <CAGAhT3nmOtZLusT8DXy9iWQsNkH2Pqc3YCf-22FZJ-fhHf38cw@mail.gmail.com>
@ 2012-04-06 22:04 ` Jeff King
0 siblings, 0 replies; 5+ messages in thread
From: Jeff King @ 2012-04-06 22:04 UTC (permalink / raw)
To: Alexander Kostikov; +Cc: Johannes Sixt, git
[Please keep replies on the list, so others can benefit from the
discussion. And please don't top-post.]
On Fri, Apr 06, 2012 at 09:30:20AM -0700, Alexander Kostikov wrote:
> Windows. 1.7.9.msysgit.0
>
> On Thu, Apr 5, 2012 at 11:14 PM, Jeff King <peff@peff.net> wrote:
> >
> > Maybe. What git version and what platform are you on? There was a bug in
> > versions of git earlier than v1.7.8 that showed the symptom you describe
> > on case-insensitive filesystems. It was fixed by commit 2548183, which
> > contains more details.
Your version should have the fix, so it may be a new issue. Is it easily
reproducible? Can you share a short reproduction recipe, or possibly
share the repo showing the problem?
-Peff
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-04-06 22:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-06 5:19 Status shows untracked directory without any untracked file in it Alexander Kostikov
2012-04-06 6:14 ` Jeff King
[not found] ` <CAGAhT3nmOtZLusT8DXy9iWQsNkH2Pqc3YCf-22FZJ-fhHf38cw@mail.gmail.com>
2012-04-06 22:04 ` Jeff King
2012-04-06 18:58 ` Johannes Sixt
2012-04-06 21:59 ` Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).